From a3e6800d8059083291e379885c2e97d6565f41ca Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 17 Jun 2023 13:13:51 -0500 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index 5098edac..dbea1ccb 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -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