Browse Source

Merge pull request #229 from appeasementPolitik/patch-1

Only call deploy hook when mail cert is renewed
pull/230/head
Luke Smith 2 years ago
committed by GitHub
parent
commit
dcbedb1917
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      emailwiz.sh

+ 2
- 2
emailwiz.sh View File

@@ -320,9 +320,9 @@ spfentry="$domain TXT v=spf1 mx a:$maildomain -all"


useradd -m -G mail dmarc 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 " 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 echo "$dkimentry
$dmarcentry $dmarcentry


Loading…
Cancel
Save