storj - do not rerun setup if the file exists (#2241)

This commit is contained in:
Stavros Kois
2024-03-04 15:19:17 +02:00
committed by GitHub
parent d3b1dfea9f
commit d07689902b
2 changed files with 9 additions and 11 deletions

View File

@@ -3,10 +3,10 @@ description: Share your storage on the internet and earn.
annotations:
title: Storj
type: application
version: 2.0.0
version: 2.0.1
apiVersion: v2
appVersion: v1.68.2
kubeVersion: '>=1.16.0-0'
kubeVersion: ">=1.16.0-0"
maintainers:
- name: truenas
url: https://www.truenas.com/

View File

@@ -16,14 +16,6 @@ workload:
runAsUser: {{ .Values.storjRunAs.user }}
runAsGroup: {{ .Values.storjRunAs.group }}
readOnlyRootFilesystem: false
# capabilities:
# add:
# - CHOWN
# - DAC_OVERRIDE
# - FOWNER
# - SETGID
# - SETUID
# - KILL
{{- include "storj.args" $ | nindent 10 }}
envFrom:
- secretRef:
@@ -89,5 +81,11 @@ workload:
- /bin/sh
- -c
- |
test ! -f /app/config/config.yaml && export SETUP="true"; /entrypoint
if test ! -f /app/config/config.yaml; then
echo "Setting up Storj"
export SETUP="true"
/entrypoint
else
echo "Storj already setup"
fi
{{- end -}}