Skip to content

Commit

Permalink
snipeit: Bugfix in initcontainer (#151)
Browse files Browse the repository at this point in the history
* snipeit: Bugfix in initcontainer

* snipeit: use find instead of chown in the initContainer

* snipeit: update the Chart version
  • Loading branch information
lausser authored Apr 29, 2021
1 parent 56bf7d4 commit eae3f1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion snipeit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: snipeit
version: 3.2.1
version: 3.2.2
appVersion: 5.1.3
description: A free open source IT asset/license management system
keywords:
Expand Down
6 changes: 3 additions & 3 deletions snipeit/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ spec:
initContainers:
- name: config-data
image: busybox
command: ["sh", "-c", "find", "/var/www/html/storage/framework/sessions", "-not", "-user", "1000", "-exec", "chown 1000 {} \\+"]
command: ["sh", "-c", "find {{ .Values.persistence.sessions.mountPath }} -not -user 1000 -exec chown 1000 {} \\+"]
volumeMounts:
- name: data
mountPath: /var/www/html/storage/framework/sessions
subPath: sessions
mountPath: {{ .Values.persistence.sessions.mountPath }}
subPath: {{ .Values.persistence.sessions.subPath }}
containers:
- name: {{ include "snipeit.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down

0 comments on commit eae3f1e

Please sign in to comment.