lib/vagrant-solaris10/cap/rsync.rb in vagrant-solaris10-0.0.5 vs lib/vagrant-solaris10/cap/rsync.rb in vagrant-solaris10-0.0.6
- old
+ new
@@ -2,11 +2,11 @@
module Solaris10
module Cap
class RSync
def self.rsync_post(machine, opts)
- machine.communicate.execute(
- "#{machine.config.solaris.suexec_cmd} find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -o ! -group #{opts[:group]} ')' " +
+ machine.communicate.sudo(
+ "find '#{opts[:guestpath]}' '(' ! -user #{opts[:owner]} -o ! -group #{opts[:group]} ')' " +
" -exec chown #{opts[:owner]}:#{opts[:group]} {} +")
end
end
end
\ No newline at end of file