Merge pull request #751 from jjhuff/chef-provision
Fix for permissions when re-provisioning chef.
This commit is contained in:
commit
cf840c88b0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue