[PHP-FPM] Use valid user for mysqladmin ping

[SOGo] Use valid user for mysqladmin ping
master
andryyy 2017-09-12 20:57:02 +02:00
parent 9a504de1f8
commit eeaa48a729
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ if [[ $(stat -c %U /data/dkim/) != "www-data" ]] ; then chown -R www-data:www-da
# Wait for containers # Wait for containers
while ! mysqladmin ping --host mysql --silent; do while ! mysqladmin ping --host mysql -u${DBUSER} -p${DBPASS} --silent; do
sleep 2 sleep 2
done done

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Wait for MySQL to warm-up # Wait for MySQL to warm-up
while mysqladmin ping --host 172.22.1.250 --silent; do while mysqladmin ping --host mysql -u${DBUSER} -p${DBPASS}${DBPASS} --silent; do
# Wait until port becomes free and send sig # Wait until port becomes free and send sig
until ! nc -z sogo-mailcow 20000; until ! nc -z sogo-mailcow 20000;