Update nodemgmt-scripts.sh

This commit is contained in:
2022-10-14 23:01:16 -05:00
parent 6be4d93ea4
commit 145eaefa27

View File

@@ -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