Update sites.inc

This commit is contained in:
2023-12-02 14:05:20 -06:00
parent 855f0c34d9
commit 4240d9befd

View File

@@ -560,8 +560,8 @@ 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)
if [ "${sites}" != "" ]; then
if [ -f ${gosite}/*${SEARCH,,}*.conf ]; then
[ "${SEARCH}" != "0" ] && sites=$(find ${gosite}/*${SEARCH,,}*.conf) || sites=$(find ${gosite}/*.conf)
i=1
for sitefile in ${sites[@]}; do
SITENAME=${sitefile##*/}; SITENAME=${SITENAME/.conf/}