Update sites.inc

This commit is contained in:
2023-11-15 16:28:29 -06:00
parent 513a61bf5a
commit 7ec8040b1f

View File

@@ -155,13 +155,17 @@ NEWSITE(){
# echo # echo
# fi # fi
if [ -z ${SITE_TYPE+x} ]; then if [ -z ${SITE_TYPE+x} ]; then
echo -en "${idsCL[LightCyan]}Site type (local/{proxy}): ${idsCL[Default]}" until [ "${SITE_TYPE}" == "proxy" ]; do
read SITE_TYPE echo -en "${idsCL[LightCyan]}Site type (local/{proxy}): ${idsCL[Default]}"
read SITE_TYPE
if [ "${SITE_TYPE}" == "" ]; then
SITE_TYPE=proxy
else
SITE_TYPE=${SITE_TYPE,,}
fi
echo
done
showdivide=yes showdivide=yes
if [ "${SITE_TYPE}" = "" ]; then
SITE_TYPE=proxy
fi
echo
fi fi
if [ "${SITE_TYPE}" = "proxy" ]; then if [ "${SITE_TYPE}" = "proxy" ]; then
if [ -z ${PROXYHOST+x} ]; then if [ -z ${PROXYHOST+x} ]; then
@@ -181,9 +185,10 @@ NEWSITE(){
showdivide=yes showdivide=yes
fi fi
if [ -z ${PROXYSCHEME+x} ]; then if [ -z ${PROXYSCHEME+x} ]; then
until [ "${PROXYSCHEME}" != "" ]; do until [ "${PROXYSCHEME}" == "http" ] || [ "${PROXYSCHEME}" == "https" ]; do
echo -en "${idsCL[LightCyan]}What is the proxy backend scheme (http/https): ${idsCL[Default]}" echo -en "${idsCL[LightCyan]}What is the proxy backend scheme (http/https): ${idsCL[Default]}"
read PROXYSCHEME read PROXYSCHEME
[ "${PROXYSCHEME}" != "" ] && PROXYSCHEME=${PROXYSCHEME,,}
echo echo
done done
showdivide=yes showdivide=yes