From b15c67a40573eca596ea998b26b5838212cb34b6 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 22 Dec 2020 13:03:28 +0100 Subject: [PATCH] create_vhost.sh: change default for 'only SSL connections' to 'Yes'. --- create_vhost.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create_vhost.sh b/create_vhost.sh index f23d1d2..3ccf194 100755 --- a/create_vhost.sh +++ b/create_vhost.sh @@ -1590,7 +1590,7 @@ if $_https && [[ -z "$_https_only" ]]; then echo "" echo "" OK="" - echononl "Allow only SSL connections? [no]: " + echononl "Allow only SSL connections? [yes]: " read OK OK=${OK,,} while [[ "X$OK" != "Xyes" && "X$OK" != "Xno" && "X$OK" != "X" ]]; do @@ -1599,10 +1599,10 @@ if $_https && [[ -z "$_https_only" ]]; then OK=${OK,,} done - if [[ "$OK" = "yes" ]] ; then - _https_only=true - else + if [[ "$OK" = "no" ]] ; then _https_only=false + else + _https_only=yes fi fi