From b3dd933afd364c258f5a26b6e67794315b10d3f1 Mon Sep 17 00:00:00 2001 From: Peter Souter Date: Tue, 29 Dec 2015 14:35:49 +0000 Subject: [PATCH] Change to use pkgng Old pkg_* is now EOL: https://lists.freebsd.org/pipermail/freebsd-ports-announce/2014-February/000077.html --- plugins/guests/freebsd/cap/rsync.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/guests/freebsd/cap/rsync.rb b/plugins/guests/freebsd/cap/rsync.rb index c8fb36006..fde6ed620 100644 --- a/plugins/guests/freebsd/cap/rsync.rb +++ b/plugins/guests/freebsd/cap/rsync.rb @@ -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