diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8d965968..31e1d7a9 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -66,12 +66,12 @@ MAIN_MENU() { case "$1" in service) - if [ "$3" = "nginx" ]; then SER='NGINX'; - elif[ "$3" = "haproxy" ]; then SER='HAProxy'; + 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'; + 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]}"