You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-08 23:06:49 +02:00
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
This commit is contained in:
@ -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
|
# Create an array of files to monitor, must be the same as in start-mailserver.sh
|
||||||
declare -a cf_files=()
|
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")
|
[ -f "$file" ] && cf_files+=("$file")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ function _setup_chksum_file() {
|
|||||||
pushd /tmp/docker-mailserver
|
pushd /tmp/docker-mailserver
|
||||||
|
|
||||||
declare -a cf_files=()
|
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")
|
[ -f "$file" ] && cf_files+=("$file")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user