diff --git a/5.5/run.sh b/5.5/run.sh index cb950e0..ea13147 100644 --- a/5.5/run.sh +++ b/5.5/run.sh @@ -33,6 +33,14 @@ if [[ ! -d $VOLUME_HOME/mysql ]]; then echo "=> Done!" echo "=> Creating admin user ..." /create_mysql_admin_user.sh + if [ -e "/boostrap.sh" ]; then + echo "=> Starting MySQL ..." + StartMySQL + echo "=> Executing bootstrap script..." + /bootstrap.sh + echo "=> Completed bootstrapping ..." + mysqladmin -uroot shutdown + fi else echo "=> Using an existing volume of MySQL" fi diff --git a/5.6/run.sh b/5.6/run.sh index 95267b9..e9473d5 100644 --- a/5.6/run.sh +++ b/5.6/run.sh @@ -33,6 +33,14 @@ if [[ ! -d $VOLUME_HOME/mysql ]]; then echo "=> Done!" echo "=> Creating admin user ..." /create_mysql_admin_user.sh + if [ -e "/boostrap.sh" ]; then + echo "=> Starting MySQL ..." + StartMySQL + echo "=> Executing bootstrap script..." + /bootstrap.sh + echo "=> Completed bootstrapping ..." + mysqladmin -uroot shutdown + fi else echo "=> Using an existing volume of MySQL" fi