Write out /home/dokku/HOSTNAME as specified by the web installer.

This commit is contained in:
Andrew Starr-Bochicchio
2016-01-04 12:44:32 -05:00
parent 07aace9975
commit 245718f236

View File

@@ -95,6 +95,9 @@ class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
os.remove('{0}/VHOST'.format(dokku_root))
except OSError:
pass
with open('{0}/HOSTNAME'.format(dokku_root), 'w') as f:
f.write(params['hostname'].value)
command = ['sshcommand', 'acl-add', 'dokku', 'admin']
for key in params['keys'].value.split("\n"):