Merge pull request #751 from jjhuff/chef-provision

Fix for permissions when re-provisioning chef.
This commit is contained in:
Mitchell Hashimoto 2012-02-20 17:28:31 -08:00
commit cf840c88b0
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ module Vagrant
temp.write(config_file) temp.write(config_file)
temp.close temp.close
env[:vm].channel.upload(temp.path, File.join(config.provisioning_path, filename)) remote_file = File.join(config.provisioning_path, filename)
env[:vm].channel.sudo("rm #{remote_file}", :error_check => false)
env[:vm].channel.upload(temp.path, remote_file)
end end
def setup_json def setup_json