Browse Source

Add until to hopefully stop race condition

andryyy 8 năm trước cách đây
mục cha
commit
35a73025c7
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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