setup-certbot: Stop automatically "agreeing" to the LE TOS.

It's not appropriate for our script to pass the `--agree-tos` flag
without any evidence of the user actually having any knowledge of,
let alone intent to agree to, any such ToS.  Stop doing that.
Fortunately this script hasn't been part of any release, so it's
likely that no users have gone down this path.
This commit is contained in:
Greg Price 2018-01-22 14:42:04 -08:00
parent 7b47cca67e
commit ac88f8ae1b
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ CERTBOT_PATH="/usr/local/sbin/certbot-auto"
wget -q https://dl.eff.org/certbot-auto -O "$CERTBOT_PATH"
chmod a+x "$CERTBOT_PATH"
"$CERTBOT_PATH" certonly "${method_args[@]}" -d "$DOMAIN" -m "$EMAIL" --agree-tos --non-interactive
# We don't use --no-interactive, because certbot needs to ask the user
# to agree to the Let's Encrypt Subscriber Agreement (aka ToS).
# Passing --force-interactive suppresses a warning, but also brings up
# an annoying prompt we stifle with --no-eff-email.
"$CERTBOT_PATH" certonly "${method_args[@]}" -d "$DOMAIN" -m "$EMAIL" --force-interactive --no-eff-email
symlink_with_backup() {
if [ -e "$2" ]; then