Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-27 19:56:01 -06:00
parent fba0f8b372
commit 9280ac679c

View File

@@ -66,14 +66,14 @@ MAIN_MENU() {
case "$1" in
service)
if [ "$2" = "nginx" ]; then SER='NGINX'
elif [ "$2" = "haproxy" ]; then SER='HAProxy'
elif [ "$2" = "gogs" ]; then SER='Gogs'
if [ "$2" = "nginx" ]; then SER='NGINX'
elif [ "$2" = "haproxy" ]; then SER='HAProxy'
elif [ "$2" = "gogs" ]; then SER='Gogs'
fi
if [ "$3" = "start" ]; then STA='Starting'
elif [ "$3" = "stop" ]; then STA='Stopping'
elif [ "$3" = "restart" ]; then STA='Restarting'
elif [ "$3" = "reload" ]; then STA='Reloading'
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