Change to use pkgng

Old pkg_* is now EOL: https://lists.freebsd.org/pipermail/freebsd-ports-announce/2014-February/000077.html
This commit is contained in:
Peter Souter 2015-12-29 14:35:49 +00:00
parent e2a52144d6
commit b3dd933afd
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
end
pkg_cmd = "pkg_add -r"
if version && version >= 10
pkg_cmd = "pkg install -y"
end
pkg_cmd = "pkg install -y"
machine.communicate.sudo("#{pkg_cmd} rsync")
end