Skip to content

Commit fdf3490

Browse files
committed
Use /tmp as we need it anyway
1 parent 476e046 commit fdf3490

File tree

1 file changed

+2
-2
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-bookstack-config

1 file changed

+2
-2
lines changed

root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ echo "Waiting for DB to be available"
4343
END=$((SECONDS + 30))
4444
while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do
4545
if [[ $(/usr/bin/nc -w1 "${DB_HOST}" "${DB_PORT}" | tr -d '\0') ]]; then
46-
if [[ ! -f /run/dbwait.lock ]]; then
46+
if [[ ! -f /tmp/dbwait.lock ]]; then
4747
sleep 5
4848
fi
49-
touch /run/dbwait.lock
49+
touch /tmp/dbwait.lock
5050
break
5151
else
5252
sleep 1

0 commit comments

Comments
 (0)