From eae3f1e60656936eddd8629519b1d2c564a8fd0f Mon Sep 17 00:00:00 2001 From: Gerhard Lausser Date: Thu, 29 Apr 2021 12:50:27 +0200 Subject: [PATCH] snipeit: Bugfix in initcontainer (#151) * snipeit: Bugfix in initcontainer * snipeit: use find instead of chown in the initContainer * snipeit: update the Chart version --- snipeit/Chart.yaml | 2 +- snipeit/templates/deployment.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snipeit/Chart.yaml b/snipeit/Chart.yaml index 29095f2..09741c3 100644 --- a/snipeit/Chart.yaml +++ b/snipeit/Chart.yaml @@ -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: diff --git a/snipeit/templates/deployment.yaml b/snipeit/templates/deployment.yaml index cf880dd..69adc87 100644 --- a/snipeit/templates/deployment.yaml +++ b/snipeit/templates/deployment.yaml @@ -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 }}"