From 0cfd7c647b8e3085cdd3e73203c1c4ef7432242d Mon Sep 17 00:00:00 2001 From: Duvel Date: Sat, 15 Oct 2022 17:00:02 +0200 Subject: [PATCH] Prevent not displaying error --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))