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
# fi
if [ -z ${SITE_TYPE+x} ]; then
echo -en "${idsCL[LightCyan]}Site type (local/{proxy}): ${idsCL[Default]}"
read SITE_TYPE
until [ "${SITE_TYPE}" == "proxy" ]; do
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
if [ "${SITE_TYPE}" = "" ]; then
SITE_TYPE=proxy
fi
echo
fi
if [ "${SITE_TYPE}" = "proxy" ]; then
if [ -z ${PROXYHOST+x} ]; then
@@ -181,9 +185,10 @@ NEWSITE(){
showdivide=yes
fi
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]}"
read PROXYSCHEME
[ "${PROXYSCHEME}" != "" ] && PROXYSCHEME=${PROXYSCHEME,,}
echo
done
showdivide=yes