diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b05c3e6e..a47d807b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -412,7 +412,7 @@ SERVICE(){ fi - if [ "${1}" = "nginx" ]; then + if [ "${1}" = "nginx" ] && ([ "${3}" == "" ] || [ "${3}" == "all" ]); then [ "${RUN_NODE_TYPE}" != "" ] && [ "${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}" != "" ] && if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then