mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
Use /tmp as we need it anyway
This commit is contained in:
parent
476e0463b1
commit
fdf34906e5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user