tester si one_ha_server_index est accessible

This commit is contained in:
Emmanuel Garette 2019-02-21 14:31:49 +01:00
parent 7a779cdec4
commit a785cedbf6
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ function init_ha() {
function main()
{
wait_true_retcode "Wait for oned to be started" "onecluster show 0 > /dev/null"
if [ "$(CreoleGet one_ha_server_index)" = "0" ]; then
if [ "$(CreoleGet activer_one_ha)" = "oui" ] && [ "$(CreoleGet one_ha_server_index)" = "0" ]; then
init_ha
fi
#