From 4d47c924c8412ce7f85aa5626de25f9c442f99be Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 18 Nov 2023 19:03:16 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 31dd2b58..d614f698 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -951,16 +951,7 @@ GUI(){ checkdocker) CHECK_DOCKER_SERVICES ${2};; set-permissions) SET-PERMISSIONS ${2};; service) - if [ "${2}" = "-h" ]; then - echo -e "\nCommand used to manage a service accross all nodes\n" - echo -e "Usage: ${idsCL[LightYellow]}[nodemgmt or nmg] service ${idsCL[Yellow]}{service} {action}${idsCL[Default]} {" - width=35 - printf "%-${width}s- %s\n" " {service}" "(service name, ex. nginx)" - printf "%-${width}s- %s\n" " {action}" "(start/stop/restart/reload/status)" - echo -e "}\n" - exit 0 - - elif [[ ( "${2}" = "giteax" ) || ( "${2}" = "powerdns-admin" ) ]] && [ "$3" = "start" ]; then + if [[ ( "${2}" = "giteax" ) || ( "${2}" = "powerdns-admin" ) ]] && [ "$3" = "start" ]; then #SET-PERMISSIONS ${2} SERVICE_MGMT ${2} start elif [[ ( "${2}" = "giteax" ) || ( "${2}" = "powerdns-admin" ) ]] && [ "$3" = "restart" ]; then