Update sites.inc

This commit is contained in:
2023-06-17 13:13:51 -05:00
parent fc087d56c3
commit a3e6800d80

View File

@@ -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