Fix mysql permissions
Closes-Bug: #1489537 Change-Id: I6544398f8cebe2a0d1bec6db2a75a9f8651f5d6f
This commit is contained in:
parent
bdf6c7c44d
commit
3f1a3c386a
@ -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
|
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user