diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6a15a12b..155a0ee0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1198,7 +1198,7 @@ SKIP_SERVER_CHECKS(){ if [ "${1}" == "on" ] || ([ ! -f ${NM_TMPFOLDER}/.skip ] && [ "${1}" == "" ]); then touch ${NM_TMPFOLDER}/.skip echo -e "${idsCL[Yellow]}Server will be skipped from Node-Manager Status Checks${idsCL[Default]}" - if [ systemctl is-active keepalived ]; then + if [ "$(systemctl is-active keepalived)" ]; then echo -en "${idsCL[Red]}Stopping${idsCL[LightCyan]} Keepalived ... ${idsCL[Default]}" systemctl stop keepalived >/dev/null 2>&1 echo -e "${idsCL[Green]}Done${idsCL[Default]}"