From a66663e997849e93880126e5438323e455183651 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 18 Mar 2019 10:38:46 +0100 Subject: [PATCH] correction onehost_create_all --- scripts/onehost_create_all | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/scripts/onehost_create_all b/scripts/onehost_create_all index ee8f156..fe2ec74 100755 --- a/scripts/onehost_create_all +++ b/scripts/onehost_create_all @@ -156,7 +156,6 @@ if [[ $HAPY_NODE_SUPPORT == "non" ]] then EchoRouge "Le mode multi-noeuds n'est pas activé dans l'interface de configuration du module" exit 1 -<<<<<<< HEAD fi HAPY_HA=$(CreoleGet activer_one_ha "non") @@ -173,24 +172,6 @@ if [[ ${HAPY_HA} == "oui" ]]; then fi fi -======= -fi - -HAPY_HA=$(CreoleGet activer_one_ha "non") - -master=1 -if [[ ${HAPY_HA} == "oui" ]]; then - idx=$(CreoleGet one_ha_server_index) - if [[ ${idx} != "0" ]]; then - EchoBleu "Mode HA: (on) Index : [${idx}]" - echo -e "\t$(basename ${0}) doit être lancé uniquement sur le leader (index 0)" - exit 0 - else - master=0 - fi -fi - ->>>>>>> dcc8eeeecee5c5824e31c73b5ddf04590714f606 declare -a HAPY_SLV=('') ONEUSER=$(CreoleGet virt_user) HAPY_SLV=$(echo $(CreoleGet one_nodes) | sed -e "s/\n/ /g") @@ -232,10 +213,7 @@ for host in ${HAPY_SLV}; do fi sync_nodes if [[ ${HAPY_HA} != "oui" ]] -<<<<<<< HEAD -======= then ->>>>>>> dcc8eeeecee5c5824e31c73b5ddf04590714f606 wait_node_ok ${HAPY_SLV[${i}]} if [[ ${?} -ne 0 ]] then