From c8b47b09bbaaa828631fc12590c80dfee8e85893 Mon Sep 17 00:00:00 2001
From: Marco Ochse <t3chn0m4g3@users.noreply.github.com>
Date: Mon, 16 Dec 2024 14:25:02 +0100
Subject: [PATCH] Fixes #1715

---
 docker/tpotinit/Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docker/tpotinit/Dockerfile b/docker/tpotinit/Dockerfile
index f78354f8..05efd54d 100644
--- a/docker/tpotinit/Dockerfile
+++ b/docker/tpotinit/Dockerfile
@@ -30,9 +30,10 @@ RUN apk --no-cache -U add \
     apk --no-cache -U add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
         yq && \
 #
-# Setup user
+# Setup user, logrotate permissions
     addgroup -g 2000 tpot && \
     adduser -S -s /bin/ash -u 2000 -D -g 2000 tpot && \
+    chmod 0600 /opt/tpot/etc/logrotate/logrotate.conf && \
 #
 # Clean up
     apk del --purge git && \