Explorar o código

Add until to hopefully stop race condition

andryyy %!s(int64=8) %!d(string=hai) anos
pai
achega
35a73025c7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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