Update sites.inc
This commit is contained in:
@@ -554,9 +554,10 @@ SITEINFO(){
|
|||||||
echo -e "${idsCL[LightGreen]}Local NGINX Sites ${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Local NGINX Sites ${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
|
||||||
declare -A SITELIST
|
declare -A SITELIST
|
||||||
if [ "${NM_NGINXPATH[${RUN_NODE_TYPE}]}" != "" ]; then
|
if [ "${gosite}" != "" ]; then
|
||||||
sites=$(find ${NM_NGINXPATH[${RUN_NODE_TYPE}]}/*); i=0
|
sites=$(find ${gosite}/*); i=0
|
||||||
if [ "${1}" == "" ] || ([ "${1}" == "edit" ] && [ "${2}" == "" ]); then
|
if [ "${1}" == "" ] || ([ "${1}" == "edit" ] && [ "${2}" == "" ]); then
|
||||||
for sitefile in ${sites[@]}; do
|
for sitefile in ${sites[@]}; do
|
||||||
site=${sitefile##*/}; site=${site/.conf/}
|
site=${sitefile##*/}; site=${site/.conf/}
|
||||||
@@ -617,7 +618,7 @@ SITEINFO(){
|
|||||||
siteid=${2}
|
siteid=${2}
|
||||||
fi
|
fi
|
||||||
site=${SITELIST[${siteid}]}
|
site=${SITELIST[${siteid}]}
|
||||||
sitefile=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/${site}.conf
|
sitefile=${gosite}/${site}.conf
|
||||||
certpath=$(grep ssl_certificate_key ${sitefile})
|
certpath=$(grep ssl_certificate_key ${sitefile})
|
||||||
if [ "${certpath}" != "" ]; then
|
if [ "${certpath}" != "" ]; then
|
||||||
ssl='Yes'
|
ssl='Yes'
|
||||||
|
|||||||
Reference in New Issue
Block a user