almost finish migrate new circumstances
This commit is contained in:
2
wait-for-postgres.sh
Normal file → Executable file
2
wait-for-postgres.sh
Normal file → Executable file
@ -6,7 +6,7 @@ set -e
|
||||
host="$1"
|
||||
shift
|
||||
|
||||
until PGPASSWORD=$POSTGRES_PASS psql -h "$host" -U "postgres" -c '\q'; do
|
||||
until PGPASSWORD=$POSTGRES_PASS psql -h "$host" -U "$POSTGRES_USER" -d "$POSTGRES_DBNAME" -c '\q'; do
|
||||
>&2 echo "Postgres is unavailable - sleeping"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user