diff --git a/inc/sites.inc b/inc/sites.inc index 2efc0112..aa9b2d02 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -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