Commit a13d833d authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Fix the dataDir for new cores

parent caae9808
...@@ -3,7 +3,7 @@ use_inline_resources ...@@ -3,7 +3,7 @@ use_inline_resources
action :add do action :add do
new_resource.updated_by_last_action(false) new_resource.updated_by_last_action(false)
# execute "#{node['typo3_solr']['solr']['solr_home']}/bin/solr create -c #{new_resource.name}" # execute "#{node['typo3_solr']['solr']['solr_home']}/bin/solr create -c #{new_resource.name}"
create_url = "http://localhost:8983/solr/admin/cores?action=CREATE&name=#{new_resource.name}&configSet=#{new_resource.config_directory}&schema=#{new_resource.language}/schema.xml&dataDir=dataDir=../../data/#{new_resource.name}" create_url = "http://localhost:8983/solr/admin/cores?action=CREATE&name=#{new_resource.name}&configSet=#{new_resource.config_directory}&schema=#{new_resource.language}/schema.xml&dataDir=../../data/#{new_resource.name}"
puts create_url puts create_url
Net::HTTP.get_response(URI.parse(create_url)) Net::HTTP.get_response(URI.parse(create_url))
new_resource.updated_by_last_action(true) new_resource.updated_by_last_action(true)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment