Commit 1dead0a0 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'fix-entrypoint-db' into 'master'

Wait for correct db in entrypoint

See merge request !693
parents 828a5f77 fc533ebb
......@@ -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
done
......
Markdown is supported
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