14 lines
228 B
Bash
14 lines
228 B
Bash
|
#!/bin/sh
|
||
|
# wait-for-postgres.sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
until tern status -c tern.docker.conf; do
|
||
|
>&2 echo "Postgres is unavailable - sleeping"
|
||
|
sleep 1
|
||
|
done
|
||
|
|
||
|
>&2 echo "Postgres is up - executing command"
|
||
|
|
||
|
tern migrate -c tern.docker.conf
|