Unverified Commit fc533ebb authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Wait for correct db

parent 0ba2af30
......@@ -5,7 +5,7 @@ set -e
>&2 echo "Creating Sphinx documentation"
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/
until psql -h "$DJANGO_POSTGRES_HOST" -U "postgres" -c '\l'; do
until psql -h "$DJANGO_POSTGRES_HOST" -U "postgres" -c '\l' $POSTGRES_DB; do
>&2 echo "PostgreSQL is unavailable: Sleeping"
sleep 5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment