Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user