Skip to content

Commit

Permalink
fix #116 by replacing :touch with :create action
Browse files Browse the repository at this point in the history
  • Loading branch information
akerekes committed Feb 2, 2015
1 parent e332fc9 commit c50edac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/install_binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
action :dump
end

file File.join(node['consul']['install_dir'], 'consul') do
consul_file = File.join(node['consul']['install_dir'], 'consul')
file "#{consul_file}" do
mode '0755'
action :touch
action :create
only_if { File.exists?("#{consul_file}") }
end

0 comments on commit c50edac

Please sign in to comment.