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