Update sites.inc

This commit is contained in:
2023-11-12 14:04:52 -06:00
parent aff13a0daf
commit 2393221a5a

View File

@@ -642,7 +642,7 @@ SITEINFO(){
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
declare -A SITELIST
if [ "${gosite}" != "" ]; then
if [ ${SEARCH} -ne 0 ]; then
if [ ${SEARCH} ! -eq 0 ]; then
sites=$(find ${gosite}/*${SEARCH,,}*.conf)
else
sites=$(find ${gosite}/*.conf)