From 7f780a6bd5dc426cb807896a0c96f0d6c485ad06 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 28 Jan 2019 08:37:03 -0600 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 d57cf54f..e374d7a2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -37,6 +37,7 @@ case "$1" in ssh root@${nip} systemctl $3 $2 if [[ $(is_service_running ${nip} ${2}) -gt "1" ]]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}" + elif [ "$3" = "Stop" ]; then echo -e "${idsCL[Red]}STOPPED${idsCL[Default]}" else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}" fi nid=`expr $nid + 1` @@ -49,7 +50,6 @@ case "$1" in ;; newcert) - "$0" service haproxy stop echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}" # $DAEMON certonly --standalone -d $2