Update sites.inc

This commit is contained in:
2023-12-02 14:13:20 -06:00
parent df4a87b1db
commit 8663a2dd16

View File

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