Skip to content

Commit

Permalink
storj - do not rerun setup if the file exists (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k authored and Bryce Nordgren committed Jul 20, 2024
1 parent a3678ba commit 6e857e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions library/ix-dev/charts/storj/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
16 changes: 7 additions & 9 deletions library/ix-dev/charts/storj/templates/_storj.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 -}}

0 comments on commit 6e857e9

Please sign in to comment.