Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-28 08:37:03 -06:00
parent f22c83d39c
commit 7f780a6bd5

View File

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