fga-gpp-mds/Falko-2017.2-BackEnd

View on GitHub
wait-4-postgres.sh

Summary

Maintainability
Test Coverage
shift 2

while ! pg_isready -h falko-database -p 5432 -q -U postgres; do
  >&2 echo "Postgres is unavailable - sleeping"
  sleep 1
done

>&2 echo "Postgres is up - executing command"