Update sites.inc
This commit is contained in:
@@ -560,9 +560,9 @@ SITEINFO(){
|
||||
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
|
||||
declare -A SITELIST
|
||||
if [ "${gosite}" != "" ]; then
|
||||
[ "${SEARCH}" != "0" ] && siteslist=$(find ${gosite}/*${SEARCH,,}*.conf) || siteslist=$(find ${gosite}/*.conf)
|
||||
echo "HERE: '$siteslist'"
|
||||
if [ "${siteslist}" != "" ]; then
|
||||
[ "${SEARCH}" != "0" ] && files=$(shopt -s nullglob dotglob; echo ${gosite}/*${SEARCH,,}*.conf) || files=$(shopt -s nullglob dotglob; echo ${gosite}/*.conf)
|
||||
if (( ${#files} )); then
|
||||
[ "${SEARCH}" != "0" ] && siteslist=$(find ${gosite}/*${SEARCH,,}*.conf) || siteslist=$(find ${gosite}/*.conf)
|
||||
i=1
|
||||
for sitefile in ${siteslist[@]}; do
|
||||
SITENAME=${sitefile##*/}; SITENAME=${SITENAME/.conf/}
|
||||
|
||||
Reference in New Issue
Block a user