fix: use actual DB name in wait for postgres script

This commit is contained in:
Ali BARIN
2022-11-18 19:06:38 +01:00
parent 5cc1afa6de
commit 6fdfdefe5c
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
set -e
until psql -h "$POSTGRES_HOST" -U "$POSTGRES_USERNAME" -d "$POSTGRES_HOST" -c '\q'; do
until psql -h "$POSTGRES_HOST" -U "$POSTGRES_USERNAME" -d "$POSTGRES_DATABASE" -c '\q'; do
>&2 echo "Waiting for Postgres to be ready..."
sleep 1
done

View File

@@ -2,7 +2,7 @@
set -e
until psql -h "$POSTGRES_HOST" -U "$POSTGRES_USERNAME" -d "$POSTGRES_HOST" -c '\q'; do
until psql -h "$POSTGRES_HOST" -U "$POSTGRES_USERNAME" -d "$POSTGRES_DATABASE" -c '\q'; do
>&2 echo "Waiting for Postgres to be ready..."
sleep 1
done