provisioners/chef: don't follow symlink when chown

This commit is contained in:
Mitchell Hashimoto 2014-01-11 08:02:59 -08:00
parent 7b2a0716f1
commit 6a7e07c53f
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ BUG FIXES:
[GH-2792]
- providers/virtualbox: Enabling internal networks by just setting "true"
works properly. [GH-2751]
- provisioners/chef: When chowning folders, don't follow symlinks.
- provisioners/salt: Options can now set install type and install args.
[GH-2766]
- synced\_folders/nfs: NFS entries are pruned on every `vagrant up`,

View File

@ -38,7 +38,7 @@ module VagrantPlugins
@machine.communicate.tap do |comm|
paths.each do |path|
comm.sudo("mkdir -p #{path}")
comm.sudo("chown #{@machine.ssh_info[:username]} #{path}")
comm.sudo("chown -h #{@machine.ssh_info[:username]} #{path}")
end
end
end