Merge pull request #1819 from andrewsomething/hostname-set-up

Write out /home/dokku/HOSTNAME as specified by the web installer.
This commit is contained in:
Jose Diaz-Gonzalez
2016-01-04 13:52:30 -05:00

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"):