Allways run galera_new_cluster on the leader during reconfigure

This commit is contained in:
Philippe Caseiro 2018-04-12 17:04:53 +02:00
parent 1cb8566c7b
commit d138e0715b
1 changed files with 1 additions and 4 deletions

View File

@ -8,12 +8,9 @@ gstateFile="/var/lib/mysql/grastate.dat"
if [[ ${db} == "oui" ]]
then
if [[ ${cluster} == "oui" ]]
then
if [[ ! -e ${gstateFile} ]]
then
[[ ${role} == "Leader" ]] && galera_new_cluster
fi
fi
fi
exit 0