fix(stalwart): Correct permissions to 2000:2000

- Fixed init container to set ownership to 2000:2000
- Stalwart container runs as user 2000 by default
- Resolves permission denied error during web UI setup

Refs: DEV-206

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-04 10:23:15 +00:00
parent 509bbebe10
commit 843affde05

View file

@ -152,7 +152,7 @@ spec:
initContainers: initContainers:
- name: fix-permissions - name: fix-permissions
image: busybox:latest image: busybox:latest
command: ["sh", "-c", "chown -R 1000:1000 /var/lib/stalwart && chmod -R 755 /var/lib/stalwart"] command: ["sh", "-c", "chown -R 2000:2000 /var/lib/stalwart && chmod -R 755 /var/lib/stalwart"]
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: /var/lib/stalwart mountPath: /var/lib/stalwart