mysqladmin uses ping on static IPv4, supervisor does no more autostart SOGo

master
andryyy 2017-06-19 10:18:53 +02:00
parent 8eeae43824
commit 624e52e198
1 changed files with 3 additions and 1 deletions

View File

@ -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