pings can be disabled in some envs
This commit is contained in:
parent
29a9d330c2
commit
beea7d5ed5
5
launch
5
launch
@ -48,11 +48,6 @@ unset DJANGO_SECRET_KEY TAIGA_DB_PASSWORD
|
|||||||
chown -Rh $USER:$GROUP $DATA/media $DATA/taiga-back/taiga/locale $DATA/logs
|
chown -Rh $USER:$GROUP $DATA/media $DATA/taiga-back/taiga/locale $DATA/logs
|
||||||
|
|
||||||
# Make sure the PostgreSQL database is up and ready
|
# Make sure the PostgreSQL database is up and ready
|
||||||
while ! ping -c 1 -W 1 $TAIGA_DB_HOST >/dev/null 2>&1; do
|
|
||||||
echo "Waiting for $TAIGA_DB_HOST to be Up ..."
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
while ! timeout 1 bash -c 'cat < /dev/null > /dev/tcp/$TAIGA_DB_HOST/$TAIGA_DB_PORT' >/dev/null 2>&1; do
|
while ! timeout 1 bash -c 'cat < /dev/null > /dev/tcp/$TAIGA_DB_HOST/$TAIGA_DB_PORT' >/dev/null 2>&1; do
|
||||||
echo "Waiting for $TAIGA_DB_HOST:$TAIGA_DB_PORT to be Ready ..."
|
echo "Waiting for $TAIGA_DB_HOST:$TAIGA_DB_PORT to be Ready ..."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user