Set a hostname even if the environment variable is not set

This commit is contained in:
Bernhard F.W. Gschaider 2014-05-30 23:22:14 +02:00
parent bd4013d9a9
commit 028e182ba9

View file

@ -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"]