Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Run rsync with --rsync-path="rsync sudo" flag #125

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/chef/knife/cook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def time(msg)

def rsync_kitchen
time('Rsync kitchen') do
cmd = %Q{rsync -rl --rsh="ssh #{ssh_args}" --delete #{rsync_exclude.collect{ |ignore| "--exclude #{ignore} " }.join} ./ :#{adjust_rsync_path(chef_path)}}
ui.msg cmd if debug?
cmd = %Q{rsync -rl --rsh="ssh #{ssh_args}" --rsync-path="sudo rsync" --delete #{rsync_exclude.collect{ |ignore| "--exclude #{ignore} " }.join} ./ :#{adjust_rsync_path(chef_path)}}
ui.msg cmd unless config[:verbosity] == 0
system! cmd
end
end
Expand Down