Update services.inc

This commit is contained in:
2025-06-30 18:36:08 -05:00
parent e49c26b0ea
commit bebdb06e6c

View File

@@ -313,7 +313,7 @@ SERVICE_MGMT(){
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
fi
echo "HERE: ${NT_HOST} = ${!NT_HOST}"
# echo "HERE: ${NT_HOST} = ${!NT_HOST}"
if ([ "${SERVICE['service']}" = "nginx" ] || [ "${SERVICE['service']}" = "apache2" ]) && ([ "${SERVICE['node']}" == "" ] || [ "${SERVICE['node']}" == "ALL" ]); then
if [ "${RUN_NODE_TYPE}" != "" ] && [ "${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}" != "" ] && ([ "${SERVICE['action']}" = "restart" ] || [ "${SERVICE['action']}" = "reload" ]); then
if [ "${SERVICE['node']}" != "ns" ]; then
@@ -455,6 +455,7 @@ SERVICE_MGMT(){
echo
fi
if [ ${QUIET} -eq 0 ] && [ "${SERVICE['action']}" != "status" ]; then
echo -e "\n ${NCMD}"
if [[ "enable,disable" = *"${SERVICE['action']}"* ]] || [ "${SERVICE['service']}" = "daemon-reload" ]; then
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
elif [[ "${srva}" = *".socket"* ]] && [ "$(${NCMD} systemctl is-active ${SERVICE['service']})" = "active" ]; then