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:
parent
76bab1932e
commit
cb2f3a697f
@ -4,12 +4,11 @@ module VagrantPlugins
|
|||||||
class RSync
|
class RSync
|
||||||
def self.rsync_install(machine)
|
def self.rsync_install(machine)
|
||||||
comm = machine.communicate
|
comm = machine.communicate
|
||||||
if !comm.test("command -v rsync")
|
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
||||||
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
set -e
|
||||||
apt-get -yqq update
|
apt-get -yqq update
|
||||||
apt-get -yqq install rsync
|
apt-get -yqq install rsync
|
||||||
EOH
|
EOH
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user