16 lines
307 B
Bash
Executable File
16 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
db=$(CreoleGet dbEnable non)
|
|
cluster=$(CreoleGet dbEnableCluster non)
|
|
role=$(CreoleGet dbClusterPosition 'Node')
|
|
gstateFile="/var/lib/mysql/grastate.dat"
|
|
|
|
if [[ ${db} == "oui" ]]
|
|
then
|
|
if [[ ${cluster} == "oui" ]]
|
|
then
|
|
[[ ${role} == "Leader" ]] && galera_new_cluster
|
|
fi
|
|
fi
|
|
|
|
exit 0 |