Shell provisioner STDOUT/STDERR to console
This commit is contained in:
parent
75e283c81a
commit
535e72204c
|
@ -37,7 +37,14 @@ module Vagrant
|
|||
# Execute it with sudo
|
||||
vm.ssh.execute do |ssh|
|
||||
ssh.sudo!("chmod +x #{config.upload_path}")
|
||||
ssh.sudo!(config.upload_path)
|
||||
|
||||
ssh.sudo!(config.upload_path) do |ch, type, data|
|
||||
if type == :exit_status
|
||||
ssh.check_exit_status(data, config.upload_path)
|
||||
else
|
||||
env.ui.info(data)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue