From 46d72bb53a1def4735a7b16789da20e062341073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20B=C3=B6hm?= Date: Mon, 14 May 2012 17:16:41 +0200 Subject: [PATCH] fix typo in change_host_name --- plugins/guests/gentoo/guest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/gentoo/guest.rb b/plugins/guests/gentoo/guest.rb index a74391d18..4dc19817d 100644 --- a/plugins/guests/gentoo/guest.rb +++ b/plugins/guests/gentoo/guest.rb @@ -39,7 +39,7 @@ module VagrantPlugins def change_host_name(name) if !vm.channel.test("sudo hostname --fqdn | grep '#{name}'") vm.channel.sudo("echo 'hostname=#{name.split('.')[0]}' > /etc/conf.d/hostname") - vm.channel.sudo("sed -i 's@^\\(127[.]0[.]1[.]1[[:space:]]\\+\\)@\\1#{name} #{name.split('.')[0]} @' /etc/hosts") + vm.channel.sudo("sed -i 's@^\\(127[.]0[.]0[.]1[[:space:]]\\+\\)@\\1#{name} #{name.split('.')[0]} @' /etc/hosts") vm.channel.sudo("hostname #{name.split('.')[0]}") end end