eole-mariadb/posttemplate/25-bdd-cluster

18 lines
305 B
Plaintext
Raw Normal View History

#!/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