Skip to content

Commit a2e1f96

Browse files
authored
Merge pull request #18 from samvera-labs/cjcolvar-patch-1
Support ActiveFedora 13
2 parents 551e102 + 9533013 commit a2e1f96

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/commands/install_solr_active_fedora_core.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ steps:
1313
- run:
1414
name: Load the default Solr config from the active-fedora Gem
1515
command: |
16-
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/config"
17-
zip -1 -r solr_config.zip ./*
18-
curl -H "Content-type:application/octet-stream" --data-binary @solr_config.zip "http://localhost:<< parameters.solr_port >>/solr/admin/configs?action=UPLOAD&name=solrconfig"
16+
if [ -d "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/conf" ]
17+
then
18+
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/conf"
19+
else
20+
cd "$(bundle show active-fedora)/lib/generators/active_fedora/config/solr/templates/solr/config"
21+
fi
22+
zip -1 -r solr_conf.zip ./*
23+
curl -H "Content-type:application/octet-stream" --data-binary @solr_conf.zip "http://localhost:<< parameters.solr_port >>/solr/admin/configs?action=UPLOAD&name=solrconfig"
1924
curl -H 'Content-type: application/json' http://localhost:<< parameters.solr_port >>/api/collections/ -d '{create: {name: << parameters.core_name >>, config: solrconfig, numShards: 1}}'

0 commit comments

Comments
 (0)