|
|
@ -831,7 +831,7 @@ wait_for_docker_ip() { |
|
|
|
done < <(image_exposed_ports_0 "$container_id") |
|
|
|
|
|
|
|
## Checking direct connection |
|
|
|
timeout=10 |
|
|
|
timeout=30 |
|
|
|
start=$SECONDS |
|
|
|
while true; do |
|
|
|
if err=$(echo "SELECT 1;" | ddb 2>&1 >/dev/null); then |
|
|
@ -847,7 +847,7 @@ wait_for_docker_ip() { |
|
|
|
fi |
|
|
|
return 18 |
|
|
|
fi |
|
|
|
debug "Got starting up error '$err'." |
|
|
|
debug "Got 'database system is starting up' error." |
|
|
|
elapsed=$((SECONDS - start)) |
|
|
|
if ((elapsed > timeout)); then |
|
|
|
err "${RED}db connection error${NORMAL}:"\ |
|
|
|