diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c76416e0..cf4094f0 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -10,7 +10,7 @@ function wait_for_database {( tries=0 while true; do [[ $tries -lt $TRIES ]] || return - (echo "from django.db import connection; connection.connect()" | umap shell) >/dev/null 2>&1 + (echo "from django.db import connection; connection.connect()" | umap shell) >/dev/null [[ $? -eq 0 ]] && return sleep $SLEEP tries=$((tries + 1))