mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-12 10:24:55 +02:00
fix: Ensure .svbin
files are newer than .sieve
source files (#3779)
This commit is contained in:
parent
ce6ebcc021
commit
265440b2bb
2 changed files with 12 additions and 1 deletions
|
@ -20,6 +20,16 @@ function _setup() {
|
|||
${FUNC}
|
||||
done
|
||||
|
||||
_setup_post
|
||||
}
|
||||
|
||||
function _setup_post() {
|
||||
# Dovecot `.svbin` files must have a newer mtime than their `.sieve` source files,
|
||||
# Modifications during setup to these files sometimes results in a common mtime value.
|
||||
# Handled during post-setup as setup of Dovecot Sieve scripts is not centralized.
|
||||
find /usr/lib/dovecot/ -iname '*.sieve' -exec touch -d '2 seconds ago' {} +
|
||||
find /usr/lib/dovecot/ -iname '*.svbin' -exec touch -d '1 seconds ago' {} +
|
||||
|
||||
# All startup modifications to configs should have taken place before calling this:
|
||||
_prepare_for_change_detection
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue