update
This commit is contained in:
@@ -1001,21 +1001,29 @@ GUI(){
|
||||
checkdocker) CHECK_DOCKER_SERVICES ${2};;
|
||||
set-permissions) SET-PERMISSIONS ${2};;
|
||||
service)
|
||||
if [[ ( "$2" = "giteax" ) || ( "$2" = "powerdns-admin" ) ]] && [ "$3" = "start" ]; then
|
||||
if [ "${2}" = "-h" ]; then
|
||||
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] service {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
|
||||
#SET-PERMISSIONS ${2}
|
||||
SERVICE ${2} start
|
||||
elif [[ ( "$2" = "giteax" ) || ( "$2" = "powerdns-admin" ) ]] && [ "$3" = "restart" ]; then
|
||||
elif [[ ( "${2}" = "giteax" ) || ( "${2}" = "powerdns-admin" ) ]] && [ "$3" = "restart" ]; then
|
||||
SERVICE ${2} stop
|
||||
#SET-PERMISSIONS ${2}
|
||||
SERVICE ${2} start
|
||||
elif [ "$2" = "web" ]; then
|
||||
elif [ "${2}" = "web" ]; then
|
||||
SERVICE php5.6-fpm ${3} ${4}
|
||||
SERVICE php7.2-fpm ${3} ${4}
|
||||
SERVICE php7.3-fpm ${3} ${4}
|
||||
SERVICE php7.4-fpm ${3} ${4}
|
||||
SERVICE php8.2-fpm ${3} ${4}
|
||||
SERVICE nginx ${3} ${4}
|
||||
elif [ "$2" = "glusterdxx" ]; then
|
||||
elif [ "${2}" = "glusterdxx" ]; then
|
||||
SERVICE glusterd stop
|
||||
else
|
||||
SERVICE ${2} ${3} ${4}
|
||||
|
||||
Reference in New Issue
Block a user