Skip to content

Commit

Permalink
Fix dashboard init trying to ask for confirmation when overwriting ex…
Browse files Browse the repository at this point in the history
…isting db (don't overwrite) (#123)

Fixes #86
  • Loading branch information
bmalynovytch authored Sep 3, 2024
1 parent 5d2edb7 commit 5959fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/crowdsec/templates/lapi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
- name: fetch-metabase-config
image: busybox:1.28
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'if [ -f /metabase-data/metabase.db/metabase.db.mv.db ]; then echo "Metabase database file already exists, skipping download and unzip"; else wget {{ .Values.lapi.dashboard.assetURL }} && unzip metabase_sqlite.zip -d /metabase-data/; fi']
command: ['sh', '-c', 'if [ -f /metabase-data/metabase.db/metabase.db.mv.db ]; then echo "Metabase database file already exists, skipping download and unzip"; else wget {{ .Values.lapi.dashboard.assetURL }} && unzip metabase_sqlite.zip -nd /metabase-data/; fi']
volumeMounts:
- name: crowdsec-db
mountPath: /metabase-data
Expand Down

0 comments on commit 5959fe4

Please sign in to comment.