fix regression chowning chef provisioning directory

if the provisioning directory is mounted before this method is called, and the mounted filesystem is of a type that doesn't support chown (e.g. vmhgfs for vmware or hfs) then this method will fail.
This commit is contained in:
Michael Glass 2013-07-25 13:22:03 -07:00
parent 25a6b6c922
commit 876937fc9e
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module VagrantPlugins
def chown_provisioning_folder def chown_provisioning_folder
@machine.communicate.tap do |comm| @machine.communicate.tap do |comm|
comm.sudo("mkdir -p #{@config.provisioning_path}") comm.sudo("mkdir -p #{@config.provisioning_path}")
comm.sudo("chown -R #{@machine.ssh_info[:username]} #{@config.provisioning_path}") comm.sudo("chown #{@machine.ssh_info[:username]} #{@config.provisioning_path}")
end end
end end