Prevent not displaying error

This commit is contained in:
Duvel 2022-10-15 17:00:02 +02:00 committed by GitHub
parent f2df2dd9c2
commit 0cfd7c647b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))