simplication déclaration des noeuds + ajustement règle de firewall + démarrer mariadb en postservice

This commit is contained in:
2019-03-04 09:54:28 +01:00
parent 921e6b01a1
commit 796b71a992
4 changed files with 24 additions and 39 deletions

11
postservice/00-bdd-cluster Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -e
if [[ "$1" == "instance" ]] && [[ "$(CreoleGet dbEnable)" == "oui" ]] && [[ "$(CreoleGet dbEnableCluster)" == "oui" ]] && [[ "$(CreoleGet dbClusterPosition)" == "Leader" ]]
then
service mariadb stop
galera_new_cluster
fi
exit 0