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 ""
echo "" echo ""
OK="" OK=""
echononl "Allow only SSL connections? [no]: " echononl "Allow only SSL connections? [yes]: "
read OK read OK
OK=${OK,,} OK=${OK,,}
while [[ "X$OK" != "Xyes" && "X$OK" != "Xno" && "X$OK" != "X" ]]; do while [[ "X$OK" != "Xyes" && "X$OK" != "Xno" && "X$OK" != "X" ]]; do
@ -1599,10 +1599,10 @@ if $_https && [[ -z "$_https_only" ]]; then
OK=${OK,,} OK=${OK,,}
done done
if [[ "$OK" = "yes" ]] ; then if [[ "$OK" = "no" ]] ; then
_https_only=true
else
_https_only=false _https_only=false
else
_https_only=yes
fi fi
fi fi