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