From 145eaefa27919c3de6fb1837271bf9f64a2a4589 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 14 Oct 2022 23:01:16 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d6d29871..f5672277 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1382,7 +1382,7 @@ SERVICE(){ checkhost=$(CHECK_HOST ${nip}) if [ "${checkhost}" != "false" ]; then #$NCMD systemctl $2 $1 - if [ "${3}" != "q" ]; then + if [ "${3}" = "q" ]; then if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}" elif [ "$(${NCMD} systemctl is-active ${1})" = "active" ]; then