Skip to content

Commit

Permalink
Better handle older deploys with solr.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpm committed Nov 24, 2014
1 parent ccd5a83 commit 9f4271c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plone_buildout/recipes/solr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
mode 0755
recursive true
end
link ::File.join(deploy[:deploy_to], "shared", "var") do
to node["plone_solr"]["data_dir"]
if ::File.exists?(node["plone_solr"]["data_dir"]) && node["plone_solr"]["data_dir"] != ::File.join(deploy[:deploy_to], "shared", "var")
link ::File.join(deploy[:deploy_to], "shared", "var") do
to node["plone_solr"]["data_dir"]
end
end
directory ::File.join(deploy[:deploy_to], "shared", "parts", "solr-download") do
recursive true
Expand Down

0 comments on commit 9f4271c

Please sign in to comment.