From 10369f18f9c3d96658afe3428f38417f1662e487 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 28 Feb 2019 10:58:25 +0100 Subject: [PATCH] Host creation is only for the 'Leader' and not for the followers --- postservice/99-z-ha | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/postservice/99-z-ha b/postservice/99-z-ha index 90aad7e..88b70d4 100644 --- a/postservice/99-z-ha +++ b/postservice/99-z-ha @@ -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