Invoke tee from specific path

This commit updates the use of `tee` to use an explicit path when
invoked rather than relying on where `tee` has been defined in a users
PATH.
This commit is contained in:
Brian Cain 2017-06-29 16:11:18 -07:00
parent 69625628c7
commit 864340ec58
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ module VagrantPlugins
line = Vagrant::Util::ShellQuote.escape(line, "'")
system(
"echo '#{line}' | " +
"#{sudo_command}tee -a /etc/exports >/dev/null")
"#{sudo_command}/usr/bin/tee -a /etc/exports >/dev/null")
end
# We run restart here instead of "update" just in case nfsd