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:
parent
25a6b6c922
commit
876937fc9e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue