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