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