From babaf1196975d63b2f8b3611608d3962de7e47ef Mon Sep 17 00:00:00 2001 From: perf3ct Date: Wed, 25 Jun 2025 19:07:20 +0000 Subject: [PATCH] add fixperms initcontainer --- charts/readur/templates/release.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/charts/readur/templates/release.yaml b/charts/readur/templates/release.yaml index 4b282df..c722a64 100644 --- a/charts/readur/templates/release.yaml +++ b/charts/readur/templates/release.yaml @@ -1,6 +1,29 @@ {{- define "readur.hardcodedValues" -}} controllers: main: + initContainers: + fixperms: + image: + repository: busybox + tag: latest + command: + - sh + - -c + - | + echo "Fixing permissions for Readur directories, this may take some time..." + chown -R 1000:1000 /app/uploads /app/watch + chmod -R 755 /app/uploads /app/watch + echo "Permissions fixed successfully" + securityContext: + runAsUser: 0 + runAsGroup: 0 + runAsNonRoot: false + readOnlyRootFilesystem: false + allowPrivilegeEscalation: true + capabilities: + add: + - CHOWN + - FOWNER containers: readur: image: