diff options
author | Tollef Fog Heen <tfheen@err.no> | 2010-02-26 09:00:00 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2010-02-26 09:00:00 +0100 |
commit | 82224a8a233ea8ec1b3a33d1b3d2a92af8d3a38a (patch) | |
tree | 4ab8f438b1a5d5f00485a1f524278198ceaef303 | |
parent | f3287fcafe4b3a65d140c91fb9c8442c086261d9 (diff) | |
download | chef-82224a8a233ea8ec1b3a33d1b3d2a92af8d3a38a.tar.gz |
Fix error in solr invocation, making it possible to override solr's data dir
-rw-r--r-- | chef-solr/lib/chef/solr/application/solr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-solr/lib/chef/solr/application/solr.rb b/chef-solr/lib/chef/solr/application/solr.rb index 64e0258c01..bb68fbec1b 100644 --- a/chef-solr/lib/chef/solr/application/solr.rb +++ b/chef-solr/lib/chef/solr/application/solr.rb @@ -150,7 +150,7 @@ class Chef end Dir.chdir(Chef::Config[:solr_jetty_path]) do command = "java -Xmx#{Chef::Config[:solr_heap_size]} -Xms#{Chef::Config[:solr_heap_size]}" - command << " -Dsolr.solr.data=#{Chef::Config[:solr_data_path]}" + command << " -Dsolr.data.dir=#{Chef::Config[:solr_data_path]}" command << " -Dsolr.solr.home=#{Chef::Config[:solr_home_path]}" command << " #{Chef::Config[:solr_java_opts]}" if Chef::Config[:solr_java_opts] command << " -jar #{File.join(Chef::Config[:solr_jetty_path], 'start.jar')}" |