correction onehost_create_all

This commit is contained in:
Emmanuel Garette 2019-03-18 10:38:46 +01:00
parent eccde53736
commit a66663e997
1 changed files with 0 additions and 22 deletions

View File

@ -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