Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-18 19:03:16 -06:00
parent 695f97b99b
commit 4d47c924c8

View File

@@ -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