guests/linux: rsync chown if either user or group incorrect [GH-3485]

This commit is contained in:
Nikhil Benesch 2014-04-15 16:55:49 -04:00
parent d0b0d5635c
commit ee5d8e2358
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module VagrantPlugins
def self.rsync_post(machine, opts)
machine.communicate.tap do |comm|
comm.sudo("find '#{opts[:guestpath]}' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} -print0 | " +
comm.sudo("find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -or ! -group #{opts[:group]} ')' -print0 | " +
"xargs -0 -r chown -v #{opts[:owner]}:#{opts[:group]}")
end
end