diff options
-rwxr-xr-x | letsencrypt.sh/cron.weekly/local-letsencrypt.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/letsencrypt.sh/cron.weekly/local-letsencrypt.sh b/letsencrypt.sh/cron.weekly/local-letsencrypt.sh index 0c84001..8a6bef2 100755 --- a/letsencrypt.sh/cron.weekly/local-letsencrypt.sh +++ b/letsencrypt.sh/cron.weekly/local-letsencrypt.sh @@ -2,6 +2,13 @@ # # Renew letsencrypt certificates -set -e +set -eu +# update certdomain certs letsencrypt.sh --cron + +# update non-EC maildomain cert if resolvable and not clashing with certdomain +maildomain=$(cat /etc/local-REDPILL/$(cat /etc/local-ORG/realm)/mailhost) +[ -z "$maildomain" ] \ + || grep ^"$maildomain" /etc/letsencrypt.sh/domains.txt \ + || letsencrypt.sh --cron --domain "$maildomain" --algo rsa |