Merge "Fix mysql permissions"

This commit is contained in:
Jenkins 2015-08-31 21:08:31 +00:00 committed by Gerrit Code Review
commit 5771454dde
2 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,5 @@ function bootstrap_db {
} }
function populate_db { function populate_db {
mysql_install_db mysql_install_db --user=mysql
chown -R mysql: /var/lib/mysql
} }

View File

@ -14,6 +14,8 @@ set_configs
# loading functions # loading functions
source /opt/kolla/config/config-galera.sh source /opt/kolla/config/config-galera.sh
chown mysql: /var/lib/mysql
# This catches all cases of the BOOTSTRAP variable being set, including empty # This catches all cases of the BOOTSTRAP variable being set, including empty
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]] && [[ ! -e /var/lib/mysql/cluster.exists ]]; then if [[ "${!KOLLA_BOOTSTRAP[@]}" ]] && [[ ! -e /var/lib/mysql/cluster.exists ]]; then
ARGS="--wsrep-new-cluster" ARGS="--wsrep-new-cluster"