dockerised mysql actually goes down briefly after startup the first time, so we need a double-wait.

This commit is contained in:
Greyscale 2020-11-19 03:52:09 +01:00
parent d4cd6df886
commit 9953fd7e4a
No known key found for this signature in database
GPG key ID: C6178C19949CFFE3

View file

@ -4,4 +4,9 @@ while ! mysqladmin ping -h"$MYSQL_HOST" -P"$MYSQL_PORT" --silent; do
sleep 1
echo -n "."
done
sleep 1;
while ! mysqladmin ping -h"$MYSQL_HOST" -P"$MYSQL_PORT" --silent; do
sleep 1
echo -n "."
done
echo -e "\nConnected to MySQL!"