From 855f0c34d9f6ee37edb17d37b39d2fbd58d57d26 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 2 Dec 2023 14:03:34 -0600 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index a83a7526..3c3033cc 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -560,10 +560,8 @@ SITEINFO(){ gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled declare -A SITELIST if [ "${gosite}" != "" ]; then - [ "${SEARCH}" != "0" ] && siteslist=${gosite}/*${SEARCH,,}*.conf || siteslist=${gosite}/*.conf - - if [ -f ${siteslist} ]; then - sites=$(find ${siteslist}) + [ "${SEARCH}" != "0" ] && sites=$(find ${gosite}/*${SEARCH,,}*.conf) || sites=$(find ${gosite}/*.conf) + if [ "${sites}" != "" ]; then i=1 for sitefile in ${sites[@]}; do SITENAME=${sitefile##*/}; SITENAME=${SITENAME/.conf/}