Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-27 19:50:59 -06:00
parent 06f317fb37
commit dd50482b52

View File

@@ -65,7 +65,22 @@ MAIN_MENU() {
}
case "$1" in
service)
if [ "$3" = "nginx" ]; then SER='NGINX';
elif[ "$3" = "haproxy" ]; then SER='HAProxy';
elif[ "$3" = "gogs" ]; then SER='Gogs'
fi
if [ "$2" = "start" ]; then STA='Starting';
elif[ "$3" = "stop" ]; then STA='Stopping';
elif[ "$3" = "restart" ]; then STA='Restarting'
fi
echo -e "${idsCL[LightBlue]}${SER} ${STA}...${idsCL[Default]}"
ssh root@10.5.10.51 systemctl $3 $2
ssh root@10.5.10.52 systemctl $3 $2
ssh root@10.5.10.53 systemctl $3 $2
exit 0
;;
haproxy-start)
sleep 15
echo -e "${idsCL[LightBlue]}HAProxy Starting...${idsCL[Default]}"