Update nodemgmt-scripts.sh
This commit is contained in:
@@ -66,13 +66,14 @@ MAIN_MENU() {
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
service)
|
service)
|
||||||
if [ "$3" = "nginx" ]; then SER='NGINX'
|
if [ "$2" = "nginx" ]; then SER='NGINX'
|
||||||
elif[ "$3" = "haproxy" ]; then SER='HAProxy'
|
elif [ "$2" = "haproxy" ]; then SER='HAProxy'
|
||||||
elif[ "$3" = "gogs" ]; then SER='Gogs'
|
elif [ "$2" = "gogs" ]; then SER='Gogs'
|
||||||
fi
|
fi
|
||||||
if [ "$2" = "start" ]; then STA='Starting'
|
if [ "$3" = "start" ]; then STA='Starting'
|
||||||
elif[ "$3" = "stop" ]; then STA='Stopping'
|
elif [ "$3" = "stop" ]; then STA='Stopping'
|
||||||
elif[ "$3" = "restart" ]; then STA='Restarting'
|
elif [ "$3" = "restart" ]; then STA='Restarting'
|
||||||
|
elif [ "$3" = "reload" ]; then STA='Reloading'
|
||||||
fi
|
fi
|
||||||
echo -e "${idsCL[LightBlue]}${SER} ${STA}...${idsCL[Default]}"
|
echo -e "${idsCL[LightBlue]}${SER} ${STA}...${idsCL[Default]}"
|
||||||
ssh root@10.5.10.51 systemctl $3 $2
|
ssh root@10.5.10.51 systemctl $3 $2
|
||||||
|
|||||||
Reference in New Issue
Block a user