From 021a4a3c096f1ef86ffb0ed7f33d4b2f7f9042cb Mon Sep 17 00:00:00 2001 From: Casper Date: Thu, 9 Feb 2023 23:34:26 +0100 Subject: [PATCH] Fix: Make logrotate state persistant (#3077) Fixes https://github.com/docker-mailserver/docker-mailserver/issues/3075 --- target/scripts/startup/misc-stack.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/scripts/startup/misc-stack.sh b/target/scripts/startup/misc-stack.sh index ec585b69..a4542c4e 100644 --- a/target/scripts/startup/misc-stack.sh +++ b/target/scripts/startup/misc-stack.sh @@ -23,8 +23,9 @@ function _misc_save_states # Always enabled features: FILES=( - spool/postfix + lib/logrotate lib/postfix + spool/postfix ) # Only consolidate state for services that are enabled @@ -75,6 +76,7 @@ function _misc_save_states [[ ${ENABLE_RSPAMD} -eq 1 ]] && chown -R _rspamd:_rspamd /var/mail-state/lib-rspamd [[ ${ENABLE_SPAMASSASSIN} -eq 1 ]] && chown -R debian-spamd:debian-spamd /var/mail-state/lib-spamassassin + chown -R root:root /var/mail-state/lib-logrotate chown -R postfix:postfix /var/mail-state/lib-postfix # NOTE: The Postfix spool location has mixed owner/groups to take into account: