Skip to content

Commit 2538745

Browse files
committed
Remove the mkdir -p
1 parent d5f342e commit 2538745

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

charts/memgraph/templates/statefulset.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,18 @@ spec:
5555
{{- end }}
5656
command: ["/bin/sh", "-c"]
5757
args:
58-
- >
58+
- > # Document or change the || true.
59+
{{- if .Values.persistentVolumeClaim.createStorageClaim }}
60+
chown -R {{ .Values.memgraphUserGroupId }} /var/lib/memgraph || true;
61+
{{- end }}
62+
{{- if .Values.persistentVolumeClaim.createLogStorage }}
63+
chown -R {{ .Values.memgraphUserGroupId }} /var/log/memgraph || true;
64+
{{- end }}
5965
{{- if .Values.persistentVolumeClaim.createUserClaim }}
60-
mkdir -p {{ .Values.persistentVolumeClaim.createUserClaim }};
61-
chown -R {{ .Values.memgraphUserGroupId }} {{ .Values.persistentVolumeClaim.userMountPath }};
66+
chown -R {{ .Values.memgraphUserGroupId }} {{ .Values.persistentVolumeClaim.userMountPath }} || true;
6267
{{- end }}
6368
{{- if .Values.persistentVolumeClaim.createCoreDumpsClaim }}
64-
mkdir -p {{ .Values.persistentVolumeClaim.coreDumpsMountPath }};
65-
chown -R {{ .Values.memgraphUserGroupId }} {{ .Values.persistentVolumeClaim.coreDumpsMountPath }};
69+
chown -R {{ .Values.memgraphUserGroupId }} {{ .Values.persistentVolumeClaim.coreDumpsMountPath }} || true;
6670
{{- end }}
6771
securityContext:
6872
readOnlyRootFilesystem: true

0 commit comments

Comments
 (0)