blob: 8a6bef236abb897d7540360e0e20f5b47151ab28 (
plain)
- #!/bin/sh
- #
- # Renew letsencrypt certificates
- 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
|