mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-06-05 02:07:41 +02:00
Fix: Make logrotate state persistant (#3077)
Fixes https://github.com/docker-mailserver/docker-mailserver/issues/3075
This commit is contained in:
parent
88767f7cc8
commit
021a4a3c09
@ -23,8 +23,9 @@ function _misc_save_states
|
|||||||
|
|
||||||
# Always enabled features:
|
# Always enabled features:
|
||||||
FILES=(
|
FILES=(
|
||||||
spool/postfix
|
lib/logrotate
|
||||||
lib/postfix
|
lib/postfix
|
||||||
|
spool/postfix
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only consolidate state for services that are enabled
|
# 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_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
|
[[ ${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
|
chown -R postfix:postfix /var/mail-state/lib-postfix
|
||||||
|
|
||||||
# NOTE: The Postfix spool location has mixed owner/groups to take into account:
|
# NOTE: The Postfix spool location has mixed owner/groups to take into account:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user