Skip to content

Commit

Permalink
fix solr schema download
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilPoposki98 committed Mar 13, 2024
1 parent 260c777 commit f696c00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compose/2.10/solr8/ckan_init_solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

set -e

CKAN_SOLR_SCHEMA_URL=https://raw.githubusercontent.com/ckan/ckan/$CKAN_VERSION/ckan/config/solr/schema.xml
MAJOR_VERSION=`echo $CKAN_VERSION | cut -d "." -f 1`
MINOR_VERSION=`echo $CKAN_VERSION | cut -d "." -f 2`

CKAN_SOLR_SCHEMA_URL=https://raw.githubusercontent.com/ckan/ckan/`echo $MAJOR_VERSION.$MINOR_VERSION`/ckan/config/solr/schema.xml

echo "Check whether managed schema exists for CKAN $CKAN_VERSION"
if ! curl --output /dev/null --silent --head --fail "$CKAN_SOLR_SCHEMA_URL"; then
Expand Down

0 comments on commit f696c00

Please sign in to comment.