Set a hostname even if the environment variable is not set
This commit is contained in:
parent
bd4013d9a9
commit
028e182ba9
1 changed files with 1 additions and 1 deletions
2
vagrantSandbox/Vagrantfile
vendored
2
vagrantSandbox/Vagrantfile
vendored
|
@ -4,7 +4,7 @@
|
|||
Vagrant.configure("2") do |config|
|
||||
config.vm.synced_folder "..", "/FOAM-sources"
|
||||
|
||||
config.vm.hostname="vagrant."+ENV["HOSTNAME"]
|
||||
config.vm.hostname="vagrant."+ (ENV["HOSTNAME"] || `hostname`)
|
||||
|
||||
nrCPU=1
|
||||
if ENV["WM_VAGRANT_CPUS"]
|
||||
|
|
Reference in a new issue