diff options
author | appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> | 2022-07-21 19:28:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 19:28:25 +0200 |
commit | 878a08c951693a79d9f11191817275e0dea1538a (patch) | |
tree | c6abcb493474d6f3f2c8afb91d6afd4c3cfa8d54 | |
parent | fd41c1d6528bf90b7475a34e976a15f2c658d26d (diff) |
Improve deploy hook
-rwxr-xr-x | emailwiz.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emailwiz.sh b/emailwiz.sh index f7028df..08685ac 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -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 |