Adding Cluster bootstraping on first run.
This commit is contained in:
parent
c1ff249d3e
commit
92080c49f2
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
db=$(CreoleGet dbEnable non)
|
||||||
|
cluster=$(CreoleGet dbEnableCluster non)
|
||||||
|
gstateFile="/var/lib/mysql/grastate.dat"
|
||||||
|
|
||||||
|
if [[ ${db} == "oui" ]]
|
||||||
|
then
|
||||||
|
if [[ ${cluster} == "oui" ]]
|
||||||
|
then
|
||||||
|
if [[ ! -e ${gstateFile} ]]
|
||||||
|
then
|
||||||
|
galera_new_cluster
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue