Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/hello-zero-nuxt.
Something went wrong. Try again.
123456789101112131415#!/bin/bashset -e
# Loop over all passed connection stringsfor conn_str in "$@"; do >&2 echo "waiting for $conn_str"
until psql "$conn_str" -q -c '\q'; do >&2 echo "Postgres is unavailable - sleeping" sleep 1 done
>&2 echo "Postgres is up - continuing"done