Added missing 'sudo' call.

This commit is contained in:
Jon Topper 2014-05-06 10:05:53 +01:00
parent 0da334156b
commit 4a4ca74dea
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ module VagrantPlugins
output.split("\n").each do |line|
# This should only ask for administrative permission once, even
# though its executed in multiple subshells.
system(%Q[echo '#{line}' | tee -a /etc/exports >/dev/null"])
system(%Q[echo '#{line}' | sudo tee -a /etc/exports >/dev/null"])
end
if nfs_running?(nfs_check_command)