Merge pull request #1 from bmx0r/bmx0r-patch-1

Remove useless line
This commit is contained in:
bmx0r 2015-04-21 23:45:23 +02:00
commit 883d01cdab
1 changed files with 0 additions and 1 deletions

View File

@ -4,7 +4,6 @@ module VagrantPlugins
class ChangeHostName class ChangeHostName
def self.change_host_name(machine, name) def self.change_host_name(machine, name)
if !machine.communicate.test("hostname | grep '^#{name}$'") if !machine.communicate.test("hostname | grep '^#{name}$'")
machine.communicate.sudo("sh -c 'echo \"#{name}\" > /etc/hostname'")
machine.communicate.sudo("/usr/bin/sethostname #{name}") machine.communicate.sudo("/usr/bin/sethostname #{name}")
end end
end end