Created
December 20, 2016 12:02
-
-
Save olkeene/53ee0f454ff11b5c82cab73d4e5ecfc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Waiting for mysql" | |
until mysql -h"$MYSQL_HOST" -P3306 -u"$MYSQL_ROOT_USER" -p"$MYSQL_ROOT_PASSWORD" -e 'show databases;'; do | |
>&2 printf "." | |
sleep 1 | |
done | |
echo "Mysql ready" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment