Linux stuff now tested and working!

This commit is contained in:
Jon Topper 2014-05-06 12:24:35 +01:00
parent 4a4ca74dea
commit 6ec9e3e279
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,5 @@
require "vagrant/util" require "vagrant/util"
require "vagrant/util/shell_quote"
require "vagrant/util/retryable" require "vagrant/util/retryable"
module VagrantPlugins module VagrantPlugins
@ -38,9 +39,8 @@ module VagrantPlugins
nfs_cleanup(id) nfs_cleanup(id)
output.split("\n").each do |line| output.split("\n").each do |line|
# This should only ask for administrative permission once, even line = Vagrant::Util::ShellQuote.escape(line, "'")
# though its executed in multiple subshells. system(%Q[echo '#{line}' | sudo tee -a /etc/exports >/dev/null])
system(%Q[echo '#{line}' | sudo tee -a /etc/exports >/dev/null"])
end end
if nfs_running?(nfs_check_command) if nfs_running?(nfs_check_command)