We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aacd6d8 commit 7854c2fCopy full SHA for 7854c2f
1 file changed
docker-entrypoint.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
set -e
3
4
-if [ -z "$SKIP_DATABASE_CHECK" -o "$SKIP_DATABASE_CHECK" = "0" ]; then
+if [ -z "$SKIP_DATABASE_CHECK" ] || [ "$SKIP_DATABASE_CHECK" = "0" ]; then
5
until nc -z -v -w30 "$DATABASE_HOST" 5432
6
do
7
echo "Waiting for postgres database connection..."
@@ -18,7 +18,7 @@ if [[ "$APPLY_MIGRATIONS" = "1" ]]; then
18
fi
19
20
# Start server
21
-if [[ ! -z "$@" ]]; then
+if [[ -n "$*" ]]; then
22
"$@"
23
elif [[ "$DEV_SERVER" = "1" ]]; then
24
python ./manage.py runserver 0.0.0.0:8081
0 commit comments