Merge pull request #1 from bmx0r/tinycore-changehostname
Removed useless line in TinyCore change_host_name.
This commit is contained in:
commit
c50199801b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue