mirror of https://github.com/docker/docs.git
startup-order: fix example executing unquoted cmd
This commit is contained in:
parent
b2def10cbb
commit
bde2d6bc50
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue