Commit 734cd29e by Czémán Arnold

openbsd: fix hostname setting

parent 68a70d11
......@@ -104,7 +104,7 @@ class Context(BaseContext):
@staticmethod
def set_hostname(hostname):
with open('/etc/myname', 'w') as f:
f.write(hostname)
f.write(hostname + '\n')
with open('/etc/hosts', 'w') as f:
f.write("127.0.0.1 localhost\n"
......
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