From 3d6a4ec7d8a37f9df202f005e340791252c265dc Mon Sep 17 00:00:00 2001 From: Thomas Buchberger Date: Thu, 30 Jan 2025 10:22:54 +0100 Subject: [PATCH] Ensure crontab file has correct mode Depending on the umask when building the Docker image, the file may have a wrong mode (writeable for group) and will be ignored. --- changes/GH-8121.bugfix | 1 + docker/core/Dockerfile | 1 + 2 files changed, 2 insertions(+) create mode 100644 changes/GH-8121.bugfix diff --git a/changes/GH-8121.bugfix b/changes/GH-8121.bugfix new file mode 100644 index 00000000000..90c19eefdad --- /dev/null +++ b/changes/GH-8121.bugfix @@ -0,0 +1 @@ +Ensure crontab file has correct mode. [buchi] diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile index cfc75b728a4..0d2c390ac46 100644 --- a/docker/core/Dockerfile +++ b/docker/core/Dockerfile @@ -94,6 +94,7 @@ COPY ./docker/core/entrypoint.d /app/entrypoint.d COPY ./docker/core/docker-entrypoint.sh ./docker/core/inituser /app/ COPY ./docker/core/zopectl /app/bin/ COPY --chown=plone ./docker/core/cron /app/cron +RUN chmod 644 /app/cron/crontab RUN mkdir -p /app/var/log /app/var/instance \ && chown plone:plone /app/var/log \