[PHP-FPM] Use valid user for mysqladmin ping

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

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# 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
until ! nc -z sogo-mailcow 20000;