tester si one_ha_server_index est accessible

This commit is contained in:
Emmanuel Garette 2019-02-21 14:31:49 +01:00
parent 7a779cdec4
commit a785cedbf6

View File

@ -456,7 +456,7 @@ function init_ha() {
function main() function main()
{ {
wait_true_retcode "Wait for oned to be started" "onecluster show 0 > /dev/null" wait_true_retcode "Wait for oned to be started" "onecluster show 0 > /dev/null"
if [ "$(CreoleGet one_ha_server_index)" = "0" ]; then if [ "$(CreoleGet activer_one_ha)" = "oui" ] && [ "$(CreoleGet one_ha_server_index)" = "0" ]; then
init_ha init_ha
fi fi
# #