Created
December 20, 2016 12:02
-
-
Save olkeene/53ee0f454ff11b5c82cab73d4e5ecfc6 to your computer and use it in GitHub Desktop.
Revisions
-
olkeene created this gist
Dec 20, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/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"