Host creation is only for the 'Leader' and not for the followers

This commit is contained in:
Philippe Caseiro 2019-02-28 10:58:25 +01:00
parent d9b15ac7fa
commit 10369f18f9

View File

@ -1,6 +1,14 @@
#!/bin/bash
if [[ ${1} == "instance" ]]
ha=$(CreoleGet activer_one_ha non)
if [[ ${ha} == "oui" ]]
then
indx=$(CreoleGet one_ha_server_index)
else
indx="0"
fi
if [[ ${1} == "instance" ]] && [[ ${indx} == "0" ]]
then
/usr/share/eole/sbin/onehost_create_all
fi