Adding Cluster bootstraping on first run.

This commit is contained in:
Philippe Caseiro 2018-04-12 10:50:35 +02:00
parent c1ff249d3e
commit 92080c49f2

18
posttemplate/25-bdd-cluster Executable file
View File

@ -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