Linux stuff now tested and working!
This commit is contained in:
parent
4a4ca74dea
commit
6ec9e3e279
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue