Commit 50c7b745 by Őry Máté

add missing newline to hosts file

fixes #7
parent 299a8d60
...@@ -144,8 +144,8 @@ class Context(object): ...@@ -144,8 +144,8 @@ class Context(object):
print line.rstrip() print line.rstrip()
with open('/etc/hosts', 'w') as f: with open('/etc/hosts', 'w') as f:
f.write('127.0.0.1 localhost' f.write("127.0.0.1 localhost\n"
'127.0.1.1 %s\n' % hostname) "127.0.1.1 %s\n" % hostname)
subprocess.call(['/bin/hostname', hostname]) subprocess.call(['/bin/hostname', hostname])
elif system == 'Windows': elif system == 'Windows':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment