Update sites.inc

This commit is contained in:
2023-12-02 14:03:34 -06:00
parent b0ceb5e78c
commit 855f0c34d9

View File

@@ -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/}