Skip to content

Commit

Permalink
fix: the initial data path changes for geonode project
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGacon committed Aug 7, 2024
1 parent 5236c3b commit 285dd1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions charts/geonode/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,11 @@ amqp://{{ .Values.rabbitmq.auth.username }}:{{ .Values.rabbitmq.auth.password }}
{{- define "geonode_path" -}}
/usr/src/{{ .Values.geonode.general.geonode_project }}/{{ .Values.geonode.general.geonode_project }}
{{- end -}}

{{- define "initial_data_path" -}}
{{- if (eq .Values.geonode.general.geonode_project "geonode") -}}
geonode/base/fixtures/initial_data.json
{{- else -}}
initial_data.json
{{- end -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ data:
pty=True,
)
ctx.run(
f"python manage.py loaddata geonode/base/fixtures/initial_data.json \
f"python manage.py loaddata {{ include "initial_data_path" . }} \
--settings={_localsettings()}",
pty=True,
)
Expand Down

0 comments on commit 285dd1b

Please sign in to comment.