Get the deb/ubuntu change host name correct

This commit is contained in:
Mitchell Hashimoto 2013-07-17 13:39:32 -05:00
parent 203594e41a
commit bc7b481dbe
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +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 --allow=hotplug")
comm.sudo("ifdown -a; ifup -a; ifup -a --allow=hotplug")
end
end
end

View File

@ -14,7 +14,7 @@ module VagrantPlugins
comm.sudo("service hostname start")
end
comm.sudo("hostname --fqdn > /etc/mailname")
comm.sudo("ifdown -a; ifup -a --allow=hotplug")
comm.sudo("ifdown -a; ifup -a; ifup -a --allow=hotplug")
end
end
end