From fc6824e79ce86c5d61c515039ecab3e6ec1b98f0 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 24 Oct 2016 12:46:44 -0700 Subject: [PATCH] guests/netbsd: Include /usr/sbin in PATH for pkg_add command --- plugins/guests/netbsd/cap/rsync.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/guests/netbsd/cap/rsync.rb b/plugins/guests/netbsd/cap/rsync.rb index e88a0ceb4..9f9337645 100644 --- a/plugins/guests/netbsd/cap/rsync.rb +++ b/plugins/guests/netbsd/cap/rsync.rb @@ -8,9 +8,11 @@ module VagrantPlugins def self.rsync_install(machine) machine.communicate.sudo( - 'PKG_PATH="http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/' \ - '`uname -m`/`uname -r | cut -d. -f1-2`/All" ' \ - 'pkg_add rsync') + 'PATH=$PATH:/usr/sbin '\ + 'PKG_PATH="http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/' \ + '`uname -m`/`uname -r | cut -d. -f1-2`/All" ' \ + 'pkg_add rsync' + ) end end end