Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Docker/Settings/pgsql/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ fi
export ADMIN_WAIT_POSTGRES_HOSTS_ARR=($ADMIN_WAIT_POSTGRES_HOSTS)
for HOST in ${ADMIN_WAIT_POSTGRES_HOSTS_ARR[@]}
do
until PGPASSWORD=$POSTGRES_PASSWORD psql -h $HOST -p $POSTGRES_PORT -U $POSTGRES_USER -c '\q';
until PGPASSWORD=$POSTGRES_PASSWORD \
PGHOST=$ODS_POSTGRES_HOST \
PGPORT=$POSTGRES_PORT \
PGUSER=$POSTGRES_USER \
pg_isready > /dev/null
do
>&2 echo "Admin '$HOST' is unavailable - sleeping"
sleep 10
Expand Down