mirror of
https://github.com/solero/wand.git
synced 2024-11-09 15:08:21 +00:00
Use $POSTGRES_USER
environment variable
This commit is contained in:
parent
865dba23ff
commit
8e90f8ec88
@ -7,7 +7,7 @@ host="$1"
|
|||||||
shift
|
shift
|
||||||
cmd="$@"
|
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"
|
>&2 echo "Postgres is unavailable - sleeping"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user