Update sites.inc
This commit is contained in:
@@ -306,9 +306,7 @@ NEWSITE(){
|
|||||||
read -n 1 response
|
read -n 1 response
|
||||||
echo
|
echo
|
||||||
if [[ $response =~ ^[Yy]$ ]] || [ "${response}" = "" ]; then
|
if [[ $response =~ ^[Yy]$ ]] || [ "${response}" = "" ]; then
|
||||||
|
|
||||||
nginxconfig=/etc/nginx/sites-enabled/${MAIN_SITE}
|
|
||||||
|
|
||||||
if [[ ${NEW_SITE} == *","* ]]; then
|
if [[ ${NEW_SITE} == *","* ]]; then
|
||||||
IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS
|
IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS
|
||||||
MAIN_SITE=${NEW_SITES[0]}
|
MAIN_SITE=${NEW_SITES[0]}
|
||||||
@@ -318,6 +316,8 @@ NEWSITE(){
|
|||||||
NGINX_SERVERNAME=${NEW_SITE}
|
NGINX_SERVERNAME=${NEW_SITE}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
nginxconfig=/etc/nginx/sites-enabled/${MAIN_SITE}
|
||||||
|
|
||||||
if [ "${SITE_TYPE}" = "proxy" ]; then
|
if [ "${SITE_TYPE}" = "proxy" ]; then
|
||||||
if [ ! -z ${PROXYSCHEME+x} ] && [ ! -z ${PROXYHOST+x} ] && [ ! -z ${PROXYPORT+x} ]; then GO=true; fi
|
if [ ! -z ${PROXYSCHEME+x} ] && [ ! -z ${PROXYHOST+x} ] && [ ! -z ${PROXYPORT+x} ]; then GO=true; fi
|
||||||
else GO=true
|
else GO=true
|
||||||
|
|||||||
Reference in New Issue
Block a user