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

@ -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