From 3f1a3c386a6ad10fb1965583159f1a15f19200e4 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Mon, 31 Aug 2015 18:39:00 +0000 Subject: [PATCH] Fix mysql permissions Closes-Bug: #1489537 Change-Id: I6544398f8cebe2a0d1bec6db2a75a9f8651f5d6f --- docker/galera/config-galera.sh | 3 +-- docker/galera/start.sh | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/galera/config-galera.sh b/docker/galera/config-galera.sh index e660840016..cfdd7d9a2e 100755 --- a/docker/galera/config-galera.sh +++ b/docker/galera/config-galera.sh @@ -32,6 +32,5 @@ function bootstrap_db { } function populate_db { - mysql_install_db - chown -R mysql: /var/lib/mysql + mysql_install_db --user=mysql } diff --git a/docker/galera/start.sh b/docker/galera/start.sh index f8f8d7f771..986cca7339 100755 --- a/docker/galera/start.sh +++ b/docker/galera/start.sh @@ -14,6 +14,8 @@ set_configs # loading functions source /opt/kolla/config/config-galera.sh +chown mysql: /var/lib/mysql + # This catches all cases of the BOOTSTRAP variable being set, including empty if [[ "${!KOLLA_BOOTSTRAP[@]}" ]] && [[ ! -e /var/lib/mysql/cluster.exists ]]; then ARGS="--wsrep-new-cluster"