Merge pull request #6760 from petems/patch-1

Change to use pkgng
This commit is contained in:
Seth Vargo 2016-02-03 09:50:19 -05:00
commit 9a93930fa9
1 changed files with 1 additions and 4 deletions

View File

@ -8,10 +8,7 @@ module VagrantPlugins
version = result.split('.')[0].to_i if type == :stdout version = result.split('.')[0].to_i if type == :stdout
end end
pkg_cmd = "pkg_add -r"
if version && version >= 10
pkg_cmd = "pkg install -y" pkg_cmd = "pkg install -y"
end
machine.communicate.sudo("#{pkg_cmd} rsync") machine.communicate.sudo("#{pkg_cmd} rsync")
end end