Update nodemgmt-scripts.sh
This commit is contained in:
@@ -37,6 +37,7 @@ case "$1" in
|
|||||||
ssh root@${nip} systemctl $3 $2
|
ssh root@${nip} systemctl $3 $2
|
||||||
if [[ $(is_service_running ${nip} ${2}) -gt "1" ]]; then
|
if [[ $(is_service_running ${nip} ${2}) -gt "1" ]]; then
|
||||||
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
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]}"
|
else echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
nid=`expr $nid + 1`
|
nid=`expr $nid + 1`
|
||||||
@@ -49,7 +50,6 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
newcert)
|
newcert)
|
||||||
|
|
||||||
"$0" service haproxy stop
|
"$0" service haproxy stop
|
||||||
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}"
|
||||||
# $DAEMON certonly --standalone -d $2
|
# $DAEMON certonly --standalone -d $2
|
||||||
|
|||||||
Reference in New Issue
Block a user