Commit 50c7b745 by Őry Máté

add missing newline to hosts file

fixes #7
parent 299a8d60
......@@ -144,8 +144,8 @@ class Context(object):
print line.rstrip()
with open('/etc/hosts', 'w') as f:
f.write('127.0.0.1 localhost'
'127.0.1.1 %s\n' % hostname)
f.write("127.0.0.1 localhost\n"
"127.0.1.1 %s\n" % hostname)
subprocess.call(['/bin/hostname', hostname])
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