Skip to content

Commit

Permalink
Merge pull request #26 from Youscribe/create_if_missing
Browse files Browse the repository at this point in the history
[COOK-2821] Prevent re-download
  • Loading branch information
Joshua Timberman committed Jun 9, 2013
2 parents fd46c88 + f6b7ed6 commit 24cb0ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@
if ::URI.parse(omnibus_package).absolute?
remote_file package_local_path do
source omnibus_package
checksum node['chef-server']['package_checksum'] if node['chef-server']['package_checksum']
action :create
if node['chef-server']['package_checksum']
checksum node['chef-server']['package_checksum']
action :create
else
action :create_if_missing
end
end
# else we assume it's on the local machine
else
Expand Down

0 comments on commit 24cb0ef

Please sign in to comment.