From 3a3cec6a8ffb80c430bb4819fef3d1943b3cbc30 Mon Sep 17 00:00:00 2001 From: Michael Sprauer Date: Tue, 7 Jul 2020 21:26:53 +0200 Subject: [PATCH] trigger reload if cert change /etc/letsencrypt/live/$HOSTNAME/key.pem and /etc/letsencrypt/live/$HOSTNAME/fullchain.pem are watched and will trigger a reload if changed --- target/check-for-changes.sh | 2 +- target/start-mailserver.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/check-for-changes.sh b/target/check-for-changes.sh index da3e0607..e72243d0 100755 --- a/target/check-for-changes.sh +++ b/target/check-for-changes.sh @@ -34,7 +34,7 @@ echo "${log_date} Using postmaster address ${PM_ADDRESS}" # Create an array of files to monitor, must be the same as in start-mailserver.sh declare -a cf_files=() -for file in postfix-accounts.cf postfix-virtual.cf postfix-aliases.cf dovecot-quotas.cf /etc/letsencrypt/acme.json; do +for file in postfix-accounts.cf postfix-virtual.cf postfix-aliases.cf dovecot-quotas.cf /etc/letsencrypt/acme.json "/etc/letsencrypt/live/$HOSTNAME/key.pem" "/etc/letsencrypt/live/$HOSTNAME/fullchain.pem"; do [ -f "$file" ] && cf_files+=("$file") done diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 932b00b1..e674361c 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -505,7 +505,7 @@ function _setup_chksum_file() { pushd /tmp/docker-mailserver declare -a cf_files=() - for file in postfix-accounts.cf postfix-virtual.cf postfix-aliases.cf dovecot-quotas.cf /etc/letsencrypt/acme.json; do + for file in postfix-accounts.cf postfix-virtual.cf postfix-aliases.cf dovecot-quotas.cf /etc/letsencrypt/acme.json "/etc/letsencrypt/live/$HOSTNAME/key.pem" "/etc/letsencrypt/live/$HOSTNAME/fullchain.pem"; do [ -f "$file" ] && cf_files+=("$file") done