mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-05 20:17:02 +02:00
open-dkim: use numerical uid and gid for chown (#4517)
Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
20798411a3
commit
337ae071d2
@ -15,7 +15,8 @@ All notable changes to this project will be documented in this file. The format
|
||||
- [`DMS_CONFIG_POLL`](https://docker-mailserver.github.io/docker-mailserver/v15.0/config/environment/#dms_config_poll) supports adjusting the polling rate (seconds) for the change detection service `check-for-changes.sh` ([#4450](https://github.com/docker-mailserver/docker-mailserver/pull/4450))
|
||||
|
||||
### Fixes
|
||||
|
||||
- **DKIM**
|
||||
- `setup config dkim domain subdomain.example.com` no longer throws an error if the owner of config/opendkim/keys does not exist in the container ([#4517](https://github.com/docker-mailserver/docker-mailserver/pull/4517))
|
||||
- **Internal:**
|
||||
- The DMS _Config Volume_ (`/tmp/docker-mailserver`) will now ensure it's file tree is accessible for services when the volume was created with missing executable bit ([#4487](https://github.com/docker-mailserver/docker-mailserver/pull/4487))
|
||||
- Removed the build-time hostname workaround for Postfix as Debian has since patched their post-install script ([#4493](https://github.com/docker-mailserver/docker-mailserver/pull/4493))
|
||||
|
@ -152,8 +152,9 @@ function _generate_dkim_keys() {
|
||||
|
||||
# Ensure ownership is consistent for all content belonging to the base directory,
|
||||
# During container startup, an internal copy will be made via `_setup_opendkim()`
|
||||
# with ownership we expect, while this chown is for the benefit of the users ownership.
|
||||
chown -R "$(stat -c '%U:%G' "${OPENDKIM_BASE_DIR}")" "${OPENDKIM_BASE_DIR}"
|
||||
# with ownership we expect, while this chown is for the benefit of the users' ownership.
|
||||
# use numerical uid and gid in case the owner of the directory does not exist inside container
|
||||
chown -R "$(stat -c '%u:%g' "${OPENDKIM_BASE_DIR}")" "${OPENDKIM_BASE_DIR}"
|
||||
}
|
||||
|
||||
# Prepare a file with one domain per line (iterated via while loop as DKIM_DOMAIN):
|
||||
|
Loading…
Reference in New Issue
Block a user