From edd341be6ff4b78246a1f3815aab2ca84b0e26e9 Mon Sep 17 00:00:00 2001 From: Dmitry Rubtsov Date: Sun, 2 Mar 2025 18:10:50 +0600 Subject: [PATCH] fix: improve chmod for "/var/log/mail/*" --- CHANGELOG.md | 5 +++++ target/scripts/startup/setup-stack.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eae261ac..ac9f9eba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file. The format > **Note**: Changes and additions listed here are contained in the `:edge` image tag. These changes may not be as stable as released changes. +### Updates + +**Internal:** + - Improved permission updating command to prevent errors when no logs are present ([#4391](https://github.com/docker-mailserver/docker-mailserver/pull/4391)) + ## [v15.0.0](https://github.com/docker-mailserver/docker-mailserver/releases/tag/v15.0.0) ### Breaking diff --git a/target/scripts/startup/setup-stack.sh b/target/scripts/startup/setup-stack.sh index d000c28b..9a99398a 100644 --- a/target/scripts/startup/setup-stack.sh +++ b/target/scripts/startup/setup-stack.sh @@ -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 {} + }