diff --git a/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run b/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run index be6f7ca..b8e03f0 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run @@ -43,10 +43,10 @@ echo "Waiting for DB to be available" END=$((SECONDS + 30)) while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do if [[ $(/usr/bin/nc -w1 "${DB_HOST}" "${DB_PORT}" | tr -d '\0') ]]; then - if [[ ! -f /run/dbwait.lock ]]; then + if [[ ! -f /tmp/dbwait.lock ]]; then sleep 5 fi - touch /run/dbwait.lock + touch /tmp/dbwait.lock break else sleep 1