pings can be disabled in some envs

This commit is contained in:
Andy 2017-09-01 19:02:18 +02:00
parent 29a9d330c2
commit beea7d5ed5

5
launch
View File

@ -48,11 +48,6 @@ unset DJANGO_SECRET_KEY TAIGA_DB_PASSWORD
chown -Rh $USER:$GROUP $DATA/media $DATA/taiga-back/taiga/locale $DATA/logs
# 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
echo "Waiting for $TAIGA_DB_HOST:$TAIGA_DB_PORT to be Ready ..."
sleep 1