Skip to content

Commit

Permalink
Update init-db.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
starlightcrafted authored Sep 11, 2024
1 parent d1087f8 commit e1fe4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function apply_path {

# apply_path

until PGPASSWORD=$POSTGRES_PASSWORD psql -h "$POSTGRES_HOST" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c '\q'; do
until PGPASSWORD=$POSTGRES_PASSWORD psql -h "$POSTGRES_HOST" -p "$POSTGRES_PORT" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c '\q'; do
echo "Postgres is unavailable - sleeping"
sleep 1
done
Expand Down

0 comments on commit e1fe4a9

Please sign in to comment.