From 624e52e1988177ba010e96becf73807d26f11932 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 19 Jun 2017 10:18:53 +0200 Subject: [PATCH] mysqladmin uses ping on static IPv4, supervisor does no more autostart SOGo --- data/Dockerfiles/sogo/reconf-domains.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/sogo/reconf-domains.sh b/data/Dockerfiles/sogo/reconf-domains.sh index 27a34d5d..a0a0b64d 100755 --- a/data/Dockerfiles/sogo/reconf-domains.sh +++ b/data/Dockerfiles/sogo/reconf-domains.sh @@ -1,7 +1,7 @@ #!/bin/bash # Wait for MySQL to warm-up -while mysqladmin ping --host mysql --silent; do +while mysqladmin ping --host 172.22.1.250 --silent; do # Recreate view @@ -96,6 +96,8 @@ chmod 600 /var/lib/sogo/GNUstep/Defaults/sogod.plist # Regenerate the SOGo Integrator plugin /thunderbird/build-plugins.sh ${MAILCOW_HOSTNAME} < <(mysql --host mysql -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain;" -B -N) +supervisorctl restart sogo + sleep 99999 done