1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-12 04:23:24 +02:00

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

This commit is contained in:
andryyy 2017-06-19 10:18:53 +02:00
parent 8eeae43824
commit 624e52e198

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