From 0b588e365675570e5206ece2290b7ad1cf4284f9 Mon Sep 17 00:00:00 2001 From: bmx0r Date: Tue, 21 Apr 2015 21:04:40 +0200 Subject: [PATCH] Remove useless line /usr/bin/sethostname will change /etc/hostname, useless to do it twice --- plugins/guests/tinycore/cap/change_host_name.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/guests/tinycore/cap/change_host_name.rb b/plugins/guests/tinycore/cap/change_host_name.rb index 2c16af362..1c4ec8590 100644 --- a/plugins/guests/tinycore/cap/change_host_name.rb +++ b/plugins/guests/tinycore/cap/change_host_name.rb @@ -4,7 +4,6 @@ module VagrantPlugins class ChangeHostName def self.change_host_name(machine, name) if !machine.communicate.test("hostname | grep '^#{name}$'") - machine.communicate.sudo("sh -c 'echo \"#{name}\" > /etc/hostname'") machine.communicate.sudo("/usr/bin/sethostname #{name}") end end