mirror of
https://github.com/solero/wand.git
synced 2024-11-26 23:47:23 +00:00
Use $POSTGRES_USER
environment variable
This commit is contained in:
parent
865dba23ff
commit
8e90f8ec88
@ -7,7 +7,7 @@ host="$1"
|
||||
shift
|
||||
cmd="$@"
|
||||
|
||||
until PGPASSWORD=$POSTGRES_PASSWORD psql -h "$host" -U "postgres" -c '\q'; do
|
||||
until PGUSER=$POSTGRES_USER PGPASSWORD=$POSTGRES_PASSWORD psql -h "$host" -c '\q'; do
|
||||
>&2 echo "Postgres is unavailable - sleeping"
|
||||
sleep 1
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user