Merge pull request #1929 from fpletz/fix/master/fix_dhcp_on_debian_ubuntu_guests
DHCP renewal on Debian/Ubuntu after setting hostname
This commit is contained in:
commit
b941a31a3f
|
@ -9,6 +9,7 @@ module VagrantPlugins
|
|||
comm.sudo("sed -i 's/.*$/#{name.split('.')[0]}/' /etc/hostname")
|
||||
comm.sudo("hostname -F /etc/hostname")
|
||||
comm.sudo("hostname --fqdn > /etc/mailname")
|
||||
comm.sudo("ifdown -a; ifup -a")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,6 +14,7 @@ module VagrantPlugins
|
|||
comm.sudo("service hostname start")
|
||||
end
|
||||
comm.sudo("hostname --fqdn > /etc/mailname")
|
||||
comm.sudo("ifdown -a; ifup -a")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue