correction onehost_create_all
This commit is contained in:
parent
eccde53736
commit
a66663e997
|
@ -156,7 +156,6 @@ if [[ $HAPY_NODE_SUPPORT == "non" ]]
|
||||||
then
|
then
|
||||||
EchoRouge "Le mode multi-noeuds n'est pas activé dans l'interface de configuration du module"
|
EchoRouge "Le mode multi-noeuds n'est pas activé dans l'interface de configuration du module"
|
||||||
exit 1
|
exit 1
|
||||||
<<<<<<< HEAD
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HAPY_HA=$(CreoleGet activer_one_ha "non")
|
HAPY_HA=$(CreoleGet activer_one_ha "non")
|
||||||
|
@ -173,24 +172,6 @@ if [[ ${HAPY_HA} == "oui" ]]; then
|
||||||
fi
|
fi
|
||||||
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=('')
|
declare -a HAPY_SLV=('')
|
||||||
ONEUSER=$(CreoleGet virt_user)
|
ONEUSER=$(CreoleGet virt_user)
|
||||||
HAPY_SLV=$(echo $(CreoleGet one_nodes) | sed -e "s/\n/ /g")
|
HAPY_SLV=$(echo $(CreoleGet one_nodes) | sed -e "s/\n/ /g")
|
||||||
|
@ -232,10 +213,7 @@ for host in ${HAPY_SLV}; do
|
||||||
fi
|
fi
|
||||||
sync_nodes
|
sync_nodes
|
||||||
if [[ ${HAPY_HA} != "oui" ]]
|
if [[ ${HAPY_HA} != "oui" ]]
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
then
|
then
|
||||||
>>>>>>> dcc8eeeecee5c5824e31c73b5ddf04590714f606
|
|
||||||
wait_node_ok ${HAPY_SLV[${i}]}
|
wait_node_ok ${HAPY_SLV[${i}]}
|
||||||
if [[ ${?} -ne 0 ]]
|
if [[ ${?} -ne 0 ]]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue