From 876937fc9e1c19a50d7eb9e533c17af035e4c00f Mon Sep 17 00:00:00 2001 From: Michael Glass Date: Thu, 25 Jul 2013 13:22:03 -0700 Subject: [PATCH] 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. --- plugins/provisioners/chef/provisioner/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/chef/provisioner/base.rb b/plugins/provisioners/chef/provisioner/base.rb index b3cd8597f..924af3a32 100644 --- a/plugins/provisioners/chef/provisioner/base.rb +++ b/plugins/provisioners/chef/provisioner/base.rb @@ -42,7 +42,7 @@ module VagrantPlugins def chown_provisioning_folder @machine.communicate.tap do |comm| 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