Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user