Update sites.inc

This commit is contained in:
2023-11-11 00:19:53 -06:00
parent 89daac906c
commit 5f1ec93d6c

View File

@@ -298,7 +298,7 @@ NEWSITE(){
echo -en "${idsCL[LightCyan]}Enable HSTS Support (Y/n): ${idsCL[Default]}"
read HSTS
showdivide=yes
[[ ${HSTS} =~ ^[Yy]$ ]] || [ "${HSTS}" = "" ] &&HSTS=yes || HSTS=no
([[ ${HSTS} =~ ^[Yy]$ ]] || [ "${HSTS}" = "" ]) && HSTS=yes || HSTS=no
echo
fi
if [ -z ${EXPLOITS+x} ]; then
@@ -318,11 +318,13 @@ NEWSITE(){
echo -en "${idsCL[LightCyan]}Secure site with Authelia SSO (y/N): ${idsCL[Default]}"
read SECURE
showdivide=yes
if [[ ${SECURE} =~ ^[Yy]$ ]]; then
if [[ ${SECURE} =~ ^[Nn]$ ]] || [ "${SECURE}" = "" ]; then
SECURE=no
elif [[ ${SECURE} =~ ^[Yy]$ ]]; then
echo -en "${idsCL[LightCyan]}Would you like to add a side of MFA with that SSO (Y/n): ${idsCL[Default]}"
read MFA
showdivide=yes
[[ ${MFA} =~ ^[Yy]$ ]] && SECURE=2FA || SECURE=1FA
([[ ${MFA} =~ ^[Yy]$ ]] || [ "{MFA}" = "" ]) && SECURE=2FA || SECURE=1FA
else
SECURE=no
fi