Use /tmp as we need it anyway

This commit is contained in:
thespad 2024-12-17 17:58:35 +00:00
parent 476e0463b1
commit fdf34906e5
No known key found for this signature in database

View File

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