Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chef Cookbooks
typo3-solr
Commits
a13d833d
Commit
a13d833d
authored
Oct 03, 2017
by
Stefan Galinski
🎮
Browse files
[BUGFIX] Fix the dataDir for new cores
parent
caae9808
Changes
1
Hide whitespace changes
Inline
Side-by-side
providers/core.rb
View file @
a13d833d
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment