guests/darwin: Exit on error setting hostname
This commit is contained in:
parent
7e88266999
commit
619c7a5b26
|
@ -9,6 +9,9 @@ module VagrantPlugins
|
|||
basename = name.split(".", 2)[0]
|
||||
|
||||
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
||||
set -e
|
||||
|
||||
# Set hostname
|
||||
scutil --set ComputerName '#{name}'
|
||||
scutil --set HostName '#{name}'
|
||||
|
||||
|
|
Loading…
Reference in New Issue