Skip to content

Commit

Permalink
snipeit: use find instead of chown in the initContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
lausser committed Apr 28, 2021
1 parent 13f011e commit c75caa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snipeit/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
initContainers:
- name: config-data
image: busybox
command: ["/bin/chown", "-R", "1000", "/var/www/html/storage/framework/sessions"]
command: ["sh", "-c", "find {{ .Values.persistence.sessions.mountPath }} -not -user 1000 -exec chown 1000 {} \\+"]
volumeMounts:
- name: data
mountPath: {{ .Values.persistence.sessions.mountPath }}
Expand Down

0 comments on commit c75caa1

Please sign in to comment.