summaryrefslogtreecommitdiff
path: root/emailwiz.sh
diff options
context:
space:
mode:
authorappeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com>2022-07-21 19:28:25 +0200
committerGitHub <noreply@github.com>2022-07-21 19:28:25 +0200
commit878a08c951693a79d9f11191817275e0dea1538a (patch)
treec6abcb493474d6f3f2c8afb91d6afd4c3cfa8d54 /emailwiz.sh
parentfd41c1d6528bf90b7475a34e976a15f2c658d26d (diff)
Improve deploy hook
Diffstat (limited to 'emailwiz.sh')
-rwxr-xr-xemailwiz.sh4
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