remove node wait in HA mode

This commit is contained in:
Emmanuel Garette 2019-03-01 12:07:16 +01:00
parent 94a498aef6
commit 89128ccba5

View File

@ -201,7 +201,6 @@ for host in ${HAPY_SLV}; do
EchoVert " * Enregistrement du noeud" EchoVert " * Enregistrement du noeud"
register_node ${host} register_node ${host}
# wait_node_ok ${host}
if [[ ${HAPY_HA} == "oui" ]] if [[ ${HAPY_HA} == "oui" ]]
then then
if [[ $DBMODE == "sqlite" ]] if [[ $DBMODE == "sqlite" ]]
@ -213,11 +212,13 @@ for host in ${HAPY_SLV}; do
fi fi
fi fi
sync_nodes sync_nodes
if [[ ${HAPY_HA} != "oui" ]]
wait_node_ok ${HAPY_SLV[${i}]} wait_node_ok ${HAPY_SLV[${i}]}
if [[ ${?} -ne 0 ]] if [[ ${?} -ne 0 ]]
then then
EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !" EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !"
fi fi
fi
done done
if [ $master = 0 ]; then if [ $master = 0 ]; then