guests/debian: Do not check if rsync is installed before installing

This is already done via the rsync_installed capability.
This commit is contained in:
Seth Vargo 2016-06-24 21:18:40 -04:00
parent 76bab1932e
commit cb2f3a697f
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 5 additions and 6 deletions

View File

@ -4,12 +4,11 @@ module VagrantPlugins
class RSync
def self.rsync_install(machine)
comm = machine.communicate
if !comm.test("command -v rsync")
comm.sudo <<-EOH.gsub(/^ {14}/, '')
apt-get -yqq update
apt-get -yqq install rsync
EOH
end
comm.sudo <<-EOH.gsub(/^ {14}/, '')
set -e
apt-get -yqq update
apt-get -yqq install rsync
EOH
end
end
end