mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-09 17:04:53 +02:00
fix: DMS state volume must ensure o+x
permission (#4420)
This commit is contained in:
parent
8ca2bd212c
commit
a3571a88c1
2 changed files with 9 additions and 1 deletions
|
@ -95,6 +95,11 @@ function _setup_save_states() {
|
|||
function _setup_adjust_state_permissions() {
|
||||
[[ ! -d ${DMS_STATE_DIR} ]] && return 0
|
||||
|
||||
# Parent directories must have executable bit set to descend the file tree for access,
|
||||
# as each service running as a non-root user requires this to access their state directory,
|
||||
# `/var/mail-state` must allow all users `+x`:
|
||||
chmod +x "${DMS_STATE_DIR}"
|
||||
|
||||
# This ensures the user and group of the files from the external mount have their
|
||||
# numeric ID values in sync. New releases where the installed packages order changes
|
||||
# can change the values in the Docker image, causing an ownership mismatch.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue