1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-07 23:03:10 +02:00

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
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 {} +
}