Update sites.inc

This commit is contained in:
voltron committed 2023-11-12 14:08:01 -06:00
1 parent 2b42029b51
commit d0494f6705
1 file changed
+1 -1
+1 -1
View File
@@ -642,7 +642,7 @@ SITEINFO(){
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
declare -A SITELIST
if [ "${gosite}" != "" ]; then
if ! [[ ${SEARCH} =~ '^[0-9]+$' ]]; then
if [ "${SEARCH}" != "0" ]; then
sites=$(find ${gosite}/*${SEARCH,,}*.conf)
else
sites=$(find ${gosite}/*.conf)