Prevent not displaying error
This commit is contained in:
parent
f2df2dd9c2
commit
0cfd7c647b
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ function wait_for_database {(
|
||||||
tries=0
|
tries=0
|
||||||
while true; do
|
while true; do
|
||||||
[[ $tries -lt $TRIES ]] || return
|
[[ $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
|
[[ $? -eq 0 ]] && return
|
||||||
sleep $SLEEP
|
sleep $SLEEP
|
||||||
tries=$((tries + 1))
|
tries=$((tries + 1))
|
||||||
|
|
Loading…
Reference in a new issue