restart mysql in start.sh and not container setup

This commit is contained in:
Girish Ramakrishnan
2015-08-13 15:16:01 -07:00
parent c2ab7e2c1f
commit d6a4ff23e2
2 changed files with 3 additions and 2 deletions
+3
View File
@@ -56,6 +56,9 @@ echo "{ \"version\": \"${arg_version}\", \"boxVersionsUrl\": \"${arg_box_version
echo "Cleaning up snapshots"
find "${DATA_DIR}/snapshots" -mindepth 1 -maxdepth 1 | xargs --no-run-if-empty btrfs subvolume delete
# restart mysql to make sure it has latest config
service mysql restart
readonly mysql_root_password="password"
mysqladmin -u root -ppassword password password # reset default root password
mysql -u root -p${mysql_root_password} -e 'CREATE DATABASE IF NOT EXISTS box'