guests/freebsd: Check FQDN for hostname
This commit is contained in:
parent
57774601d9
commit
ea9b28f9b6
|
@ -6,7 +6,7 @@ module VagrantPlugins
|
|||
options = { shell: "sh" }
|
||||
comm = machine.communicate
|
||||
|
||||
if !comm.test("hostname -f | grep -w '#{name}' || hostname -s | grep -w '#{name}'", options)
|
||||
if !comm.test("hostname -f | grep '^#{name}$'", options)
|
||||
basename = name.split(".", 2)[0]
|
||||
command = <<-EOH.gsub(/^ {14}/, '')
|
||||
# Set the hostname
|
||||
|
|
Loading…
Reference in New Issue