startup-order: fix example executing unquoted cmd

This commit is contained in:
lightmare 2021-05-04 13:09:05 +02:00 committed by GitHub
parent b2def10cbb
commit bde2d6bc50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,6 @@ script:
host="$1"
shift
cmd="$@"
until PGPASSWORD=$POSTGRES_PASSWORD psql -h "$host" -U "postgres" -c '\q'; do
>&2 echo "Postgres is unavailable - sleeping"
@ -77,7 +76,7 @@ script:
done
>&2 echo "Postgres is up - executing command"
exec $cmd
exec "$@"
```
You can use this as a wrapper script as in the previous example, by setting: