Skip to content

Commit

Permalink
Merge pull request #18 from samvera-labs/cjcolvar-patch-1
Browse files Browse the repository at this point in the history
Support ActiveFedora 13
  • Loading branch information
jrgriffiniii authored Aug 22, 2019
2 parents 551e102 + 9533013 commit a2e1f96
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/commands/install_solr_active_fedora_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ steps:
- run:
name: Load the default Solr config from the active-fedora Gem
command: |
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/config"
zip -1 -r solr_config.zip ./*
curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://localhost:<< parameters.solr_port >>/solr/admin/configs?action=UPLOAD&name=solrconfig"
if [ -d "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/conf" ]
then
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/conf"
else
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/config"
fi
zip -1 -r solr_conf.zip ./*
curl -H "Content-type:application/octet-stream" --data-binary @solr_conf.zip "http://localhost:<< parameters.solr_port >>/solr/admin/configs?action=UPLOAD&name=solrconfig"
curl -H 'Content-type: application/json' http://localhost:<< parameters.solr_port >>/api/collections/ -d '{create: {name: << parameters.core_name >>, config: solrconfig, numShards: 1}}'

0 comments on commit a2e1f96

Please sign in to comment.