Skip to content
Snippets Groups Projects
Commit a13d833d authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix the dataDir for new cores

parent caae9808
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ use_inline_resources
action :add do
new_resource.updated_by_last_action(false)
# 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
Net::HTTP.get_response(URI.parse(create_url))
new_resource.updated_by_last_action(true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment