diff --git a/nextcloud-aio-helm-chart/templates/nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml b/nextcloud-aio-helm-chart/templates/nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml index 3eb9e94f..b76ddb2a 100755 --- a/nextcloud-aio-helm-chart/templates/nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml +++ b/nextcloud-aio-helm-chart/templates/nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml @@ -1,3 +1,4 @@ +{{- if eq .Values.EUROOFFICE_ENABLED "yes" }} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -14,3 +15,4 @@ spec: resources: requests: storage: {{ .Values.EUROOFFICE_DATA_STORAGE_SIZE }} +{{- end }} diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index 9e4d9a6a..c760b63e 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -509,6 +509,12 @@ find ./ -name "*nextcloud-aio-elasticsearch-persistentvolumeclaim.yaml" -exec se # shellcheck disable=SC1083 find ./ -name "*nextcloud-aio-elasticsearch-persistentvolumeclaim.yaml" -exec sed -i "$ a {{- end }}" \{} \; +# Additional case for Eurooffice-data +# shellcheck disable=SC1083 +find ./ -name "*nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml" -exec sed -i "1i\\{{- if eq .Values.EUROOFFICE_ENABLED \"yes\" }}" \{} \; +# shellcheck disable=SC1083 +find ./ -name "*nextcloud-aio-eurooffice-data-persistentvolumeclaim.yaml" -exec sed -i "$ a {{- end }}" \{} \; + cat << EOL > /tmp/security.conf # The items below only work in container context allowPrivilegeEscalation: false