Clean root password Management

Don't store the root password.
Provide easy replacement for mysql_pwd.py
This commit is contained in:
2018-04-12 16:01:43 +02:00
parent 2f4eca027a
commit 1dc370fb94
4 changed files with 45 additions and 35 deletions

View File

@ -2,6 +2,7 @@
db=$(CreoleGet dbEnable non)
cluster=$(CreoleGet dbEnableCluster non)
role=$(CreoleGet dbClusterPosition 'Node')
gstateFile="/var/lib/mysql/grastate.dat"
if [[ ${db} == "oui" ]]
@ -10,7 +11,7 @@ then
then
if [[ ! -e ${gstateFile} ]]
then
galera_new_cluster
[[ ${role} == "Leader" ]] && galera_new_cluster
fi
fi
fi