1
0
mirror of https://bitbucket.org/shim_/mumble.git synced 2019-09-08 21:58:51 +02:00

use nc -q 1 rather than nc -z to wait for mysql

This commit is contained in:
shim_
2016-05-26 02:03:21 +02:00
committed by Crafter6432
parent 4c0419c0c3
commit 1f713ccb2b

View File

@@ -17,7 +17,7 @@ function wait_for_mysql {
if [ ! -z "$DATABASE" ] && [ "$DATABASE" == "MYSQL" ]; then if [ ! -z "$DATABASE" ] && [ "$DATABASE" == "MYSQL" ]; then
PORT=3306 PORT=3306
if [ ! -z "$DB_PORT" ] ; then PORT="$DB_PORT" ;fi if [ ! -z "$DB_PORT" ] ; then PORT="$DB_PORT" ;fi
while ! nc -z $DB_HOST $PORT; do sleep 3; done while ! nc -q 1 $DB_HOST $PORT < /dev/null; do sleep 3; done
fi fi
} }