create_vhost.sh: change default for 'only SSL connections' to 'Yes'.

This commit is contained in:
Christoph 2020-12-22 13:03:28 +01:00
parent a6f007d937
commit b15c67a405

View File

@ -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