Skip to content

Commit

Permalink
Init Helm Chart: Geojson file name parsing fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Lalith Kota <kotalalith@gmail.com>
  • Loading branch information
lalithkota committed Nov 1, 2024
1 parent 9363b9b commit 11bb359
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/reporting-init/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ startUpCommand: |-
for geojson_file in opensearch-dashboards/*.geojson ; do
index_name=$(basename "$geojson_file" ".geojson")
index_name=${index_name// /_}
if [[ $index_name =~ \. ]]; then
index_name=${index_name#*.}
index_name=${index_name//./_}
fi
if [ -n "$index_name" ]; then
echo "==> Importing Geojson - $geojson_file."
Expand Down

0 comments on commit 11bb359

Please sign in to comment.