From 19834e73a01315fcdd89cd2e9e3ba2c6b62ad051 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 2 Dec 2023 14:15:53 -0600 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index 60e94a1c..b158d23a 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -560,11 +560,11 @@ SITEINFO(){ gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled declare -A SITELIST if [ "${gosite}" != "" ]; then - [ "${SEARCH}" != "0" ] && sites=$(find ${gosite}/*${SEARCH,,}*.conf) || sites=$(find ${gosite}/*.conf) + [ "${SEARCH}" != "0" ] && siteslist=$(find ${gosite}/*${SEARCH,,}*.conf) || siteslist=$(find ${gosite}/*.conf) echo "HERE: '$sites'" - if [ "${sites}" != "" ]; then + if [ "${siteslist}" != "" ]; then i=1 - for sitefile in ${sites[@]}; do + for sitefile in ${siteslist[@]}; do SITENAME=${sitefile##*/}; SITENAME=${SITENAME/.conf/} siteconfig=$(cat ${sitefile}) if (( i % 12 == 0 )) || [ $i = 1 ]; then