|
|
@ -31,12 +31,12 @@ spec: |
|
|
initContainers: |
|
|
initContainers: |
|
|
- name: fix-volume-permissions |
|
|
- name: fix-volume-permissions |
|
|
image: alpine:latest |
|
|
image: alpine:latest |
|
|
command: ["sh", "-c", "chown -R 82:82 /snappymail/data"] |
|
|
command: ["sh", "-c", "chown -R 82:82 /var/lib/snappymail"] |
|
|
securityContext: |
|
|
securityContext: |
|
|
runAsUser: 0 # Força a execução como root temporariamente |
|
|
runAsUser: 0 # Força a execução como root temporariamente |
|
|
volumeMounts: |
|
|
volumeMounts: |
|
|
- name: snappymaildata |
|
|
- name: snappymaildata |
|
|
mountPath: /snappymail/data |
|
|
mountPath: /var/lib/snappymail |
|
|
containers: |
|
|
containers: |
|
|
- name: {{ .Chart.Name }} |
|
|
- name: {{ .Chart.Name }} |
|
|
securityContext: |
|
|
securityContext: |
|
|
|