Skip to content

Commit

Permalink
Merge pull request #165 from Telecominfraproject/wifi-13280
Browse files Browse the repository at this point in the history
  • Loading branch information
stephb9959 authored Jan 14, 2024
2 parents b2968d9 + c2c06de commit 86709bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chart/templates/_initdb_scripts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#!/bin/bash
export PGPASSWORD=$PGPOOL_POSTGRES_PASSWORD

echo "Testing if postgres is running, executing script"

until psql -h {{ include "postgresql-ha.postgresql" $postgresqlEmulatedRoot }} postgres postgres -c '\q'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
Expand Down

0 comments on commit 86709bc

Please sign in to comment.