Update args to clear sideload directory before cloning

because data is now persisted between restarts we need to clear the directory contents before cloning to avoid 'already exists and is not an empty directory' errors.
pull/7963/head
liviu-vasut 1 month ago committed by GitHub
parent 05d377baec
commit 5d9d99937f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -34,7 +34,7 @@ spec:
env:
{{- toYaml .Values.sideload.env | nindent 12 }}
command: [ "sh", "-c" ]
args: [ "mkdir -p /wiki/data/sideload && git clone --depth=1 {{ .Values.sideload.repoURL }} /wiki/data/sideload/" ]
args: [ "mkdir -p /wiki/data/sideload && rm -fr /wiki/data/sideload/* && git clone --depth=1 {{ .Values.sideload.repoURL }} /wiki/data/sideload/" ]
resources:
{{- toYaml .Values.sideload.resources | nindent 12 }}
{{- with .Values.volumeMounts }}

Loading…
Cancel
Save