Skip to content

Commit

Permalink
only include apt recipe if java is to be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dwradcliffe committed Apr 23, 2015
1 parent 05bf4db commit 3d216fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
# Copyright 2013, David Radcliffe
#

include_recipe 'apt::default'

include_recipe 'java' if node['solr']['install_java']
if node['solr']['install_java']
include_recipe 'apt'
include_recipe 'java'
end

src_filename = ::File.basename(node['solr']['url'])
src_filepath = "#{Chef::Config['file_cache_path']}/#{src_filename}"
Expand Down

0 comments on commit 3d216fb

Please sign in to comment.