Parcourir la source

Add until to hopefully stop race condition

andryyy il y a 8 ans
Parent
commit
35a73025c7
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      data/Dockerfiles/sogo/reconf-domains.sh

+ 4 - 0
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