mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Merge pull request #210 from codemonium/simplify-pg_isready
Simplify pg_isready usage
This commit is contained in:
@@ -437,8 +437,7 @@ check_availability() {
|
||||
;;
|
||||
"pgsql" )
|
||||
counter=0
|
||||
export PGPASSWORD=${DB_PASS}
|
||||
until pg_isready --dbname=${DB_NAME} --host=${DB_HOST} --port=${DB_PORT} --username=${DB_USER} -q
|
||||
until pg_isready --host=${DB_HOST} --port=${DB_PORT} -q
|
||||
do
|
||||
sleep 5
|
||||
(( counter+=5 ))
|
||||
|
||||
Reference in New Issue
Block a user