From 29bd21b0ec8cfbc1628b983202de9df9331fb91e Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Tue, 2 Mar 2021 16:43:58 +0700 Subject: [PATCH] fix Certbot email --- scripts/install_certbotle.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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