From 35a73025c79417db15c61c069aeb0a97fb618c54 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 12 Jun 2017 23:49:21 +0200 Subject: [PATCH] Add until to hopefully stop race condition --- data/Dockerfiles/sogo/reconf-domains.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/Dockerfiles/sogo/reconf-domains.sh b/data/Dockerfiles/sogo/reconf-domains.sh index 9ea2f6dd..d48eee97 100755 --- a/data/Dockerfiles/sogo/reconf-domains.sh +++ b/data/Dockerfiles/sogo/reconf-domains.sh @@ -1,5 +1,9 @@ #!/bin/bash +until mysqladmin ping --host mysql --silent; do + sleep 1 +done + # Wait for MySQL to warm-up while mysqladmin ping --host mysql --silent; do