Don't run local commands as sudo by default

This commit is contained in:
Brian Cain 2018-03-30 11:00:08 -07:00
parent fd2878309b
commit 2c30eab723
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ module VagrantPlugins
if @run && @run.is_a?(Hash)
new_run = VagrantPlugins::Shell::Config.new()
new_run.set_options(@run)
# don't run local commands as sudo by default
new_run.privileged = false
new_run.finalize!
@run = new_run
end