diff --git a/scripts/install_certbotle.sh b/scripts/install_certbotle.sh index 3dbb79a..4d6c1b1 100755 --- a/scripts/install_certbotle.sh +++ b/scripts/install_certbotle.sh @@ -84,7 +84,8 @@ EOL fi # Register a new account. - LE_EMAIL=${ADMIN_EMAIL:-"cert@lemper.sh"} + local LE_EMAIL=${ADMIN_EMAIL:-"cert@lemper.sh"} + if [ -d /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory ]; then run certbot update_account --email "${LE_EMAIL}" --no-eff-email --agree-tos else