fix Certbot email

This commit is contained in:
Edi Septriyanto
2021-03-02 16:43:58 +07:00
parent 43d9437861
commit 29bd21b0ec

View File

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