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:
Mitchell Hashimoto 2013-07-16 16:25:47 -07:00
commit b941a31a3f
2 changed files with 2 additions and 0 deletions

View File

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

View File

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