fix: Support chmod on /var/log/mail/* when dir is empty (#4391)

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Dmitry R. 2025-03-04 03:28:15 +06:00 committed by GitHub
parent 807f4f7118
commit 1756ba04fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -144,5 +144,5 @@ function __log_fixes() {
# Volume permissions should be corrected:
# https://github.com/docker-mailserver/docker-mailserver-helm/issues/137
chmod 755 /var/log/mail/
chmod 640 /var/log/mail/*
find /var/log/mail/ -type f -exec chmod 640 {} +
}