From ec972550c019550a40aee1c5831d90061470669c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 10 Nov 2023 10:42:31 -0600 Subject: [PATCH] Update services.inc --- inc/services.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/services.inc b/inc/services.inc index 85e8d521..0e21b9a4 100755 --- a/inc/services.inc +++ b/inc/services.inc @@ -217,7 +217,7 @@ SERVICE(){ if [ "${1}" = "nginx" ] && ([ "${3}" == "" ] || [ "${3}" == "all" ]); then - if [ "${RUN_NODE_TYPE}" != "" ] && [ "${NM_REPL_NGINX_PATHS}" != "" ] && [ "${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}" != "" ] && ([ "${2}" = "restart" ] || [ "${2}" = "reload" ]); then + if [ "${RUN_NODE_TYPE}" != "" ] && [[ "$(declare -p NM_REPL_NGINX_PATHS)" =~ "declare -a" ]] && [ "${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}" != "" ] && ([ "${2}" = "restart" ] || [ "${2}" = "reload" ]); then if [ "${3}" != "ns" ]; then if [ "${3}" != "q" ]; then echo -en "${idsCL[LightYellow]}Verifying replication across the nodes... ${idsCL[Default]}"