Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-27 19:54:25 -06:00
parent 3cbf000692
commit fba0f8b372

View File

@@ -66,13 +66,14 @@ MAIN_MENU() {
case "$1" in
service)
if [ "$3" = "nginx" ]; then SER='NGINX'
elif[ "$3" = "haproxy" ]; then SER='HAProxy'
elif[ "$3" = "gogs" ]; then SER='Gogs'
if [ "$2" = "nginx" ]; then SER='NGINX'
elif [ "$2" = "haproxy" ]; then SER='HAProxy'
elif [ "$2" = "gogs" ]; then SER='Gogs'
fi
if [ "$2" = "start" ]; then STA='Starting'
elif[ "$3" = "stop" ]; then STA='Stopping'
elif[ "$3" = "restart" ]; then STA='Restarting'
if [ "$3" = "start" ]; then STA='Starting'
elif [ "$3" = "stop" ]; then STA='Stopping'
elif [ "$3" = "restart" ]; then STA='Restarting'
elif [ "$3" = "reload" ]; then STA='Reloading'
fi
echo -e "${idsCL[LightBlue]}${SER} ${STA}...${idsCL[Default]}"
ssh root@10.5.10.51 systemctl $3 $2