1
0
Fork 0
mirror of https://github.com/lukesmithxyz/emailwiz synced 2024-05-05 23:26:21 +02:00

Merge pull request #229 from appeasementPolitik/patch-1

Only call deploy hook when mail cert is renewed
This commit is contained in:
Luke Smith 2022-07-21 18:40:35 +00:00 committed by GitHub
commit dcbedb1917
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,9 +320,9 @@ spfentry="$domain TXT v=spf1 mx a:$maildomain -all"
useradd -m -G mail dmarc
grep -q "^deploy-hook = postfix reload" /etc/letsencrypt/cli.ini ||
grep -q '^deploy-hook = echo "$RENEWED_DOMAINS" | grep -q' /etc/letsencrypt/cli.ini ||
echo "
deploy-hook = service postfix reload && service dovecot reload" >> /etc/letsencrypt/cli.ini
deploy-hook = echo \"\$RENEWED_DOMAINS\" | grep -q '$maildomain' && service postfix reload && service dovecot reload" >> /etc/letsencrypt/cli.ini
echo "$dkimentry
$dmarcentry