Add the obsidian link support to config also. Fix poll-for-db.

This commit is contained in:
Jyri-Petteri Paloposki 2022-02-03 11:44:26 +02:00
parent 4c031c7699
commit 7a9dd6cd6f
3 changed files with 5 additions and 3 deletions

View file

@ -13,7 +13,7 @@ RUN bundle install --jobs 4
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn
RUN apt-get update && apt-get install -y yarn netcat
RUN mkdir /app/log

View file

@ -7,4 +7,4 @@ safe_list =
Loofah::HTML5::WhiteList
end
safe_list::ALLOWED_PROTOCOLS.merge(%w(message onenote))
safe_list::ALLOWED_PROTOCOLS.merge(%w(message onenote obsidian))

View file

@ -1,10 +1,12 @@
#!/bin/bash
echo "==> Polling DB…"
appdir=$(cd $(dirname "$0")/.. && pwd)
[ -f /etc/app-env ] || exec "$appdir/script/docker-environment" $0 $@
for i in {1..60}; do
curl -sf telnet://db:3306 >/dev/null && exit
nc -z -w5 db 3306 && exit
sleep 1
done