fix postgres check
This commit is contained in:
parent
46c023754a
commit
d50a8934c1
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ fi
|
||||||
ls /data/map
|
ls /data/map
|
||||||
|
|
||||||
if [ "$1" == "webworker" ]; then
|
if [ "$1" == "webworker" ]; then
|
||||||
until psql -h "postgres" -U "c3nav" -c '\l'; do
|
while ! nc postgres 5432; do
|
||||||
>&2 echo "Postgres is unavailable! waiting…"
|
>&2 echo "Postgres is unavailable! waiting…"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
@ -39,7 +39,7 @@ if [ "$1" == "webworker" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "taskworker" ]; then
|
if [ "$1" == "taskworker" ]; then
|
||||||
until psql -h "postgres" -U "c3nav" -c '\l'; do
|
while ! nc postgres 5432; do
|
||||||
>&2 echo "Postgres is unavailable! waiting…"
|
>&2 echo "Postgres is unavailable! waiting…"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue