From 8663a2dd167b8ae3df8241c1be0038ca2563cf17 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 2 Dec 2023 14:13:20 -0600 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/sites.inc b/inc/sites.inc index a6c6e44c..dde912f6 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -560,7 +560,7 @@ SITEINFO(){ gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled declare -A SITELIST if [ "${gosite}" != "" ]; then - [ "${SEARCH}" != "0" ] && sites=$(find -q ${gosite}/*${SEARCH,,}*.conf) || sites=$(find -q ${gosite}/*.conf) + [ "${SEARCH}" != "0" ] && sites=$(find ${gosite}/*${SEARCH,,}*.conf >/dev/null 2>&1) || sites=$(find ${gosite}/*.conf >/dev/null 2>&1) if [ "${sites}" != "" ]; then i=1 for sitefile in ${sites[@]}; do