Set correct ownership on HOSTNAME file
This commit is contained in:
committed by
GitHub
parent
da12a8c835
commit
aba5d03632
@@ -162,9 +162,13 @@ class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
with open('{0}/HOSTNAME'.format(dokku_root), 'w') as f:
|
hostname_filename = '{0}/HOSTNAME'.format(dokku_root)
|
||||||
|
|
||||||
|
with open(hostname_filename, 'w') as f:
|
||||||
f.write(params['hostname'].value)
|
f.write(params['hostname'].value)
|
||||||
|
|
||||||
|
shutil.chown(hostname_filename, dokku_user, dokku_group)
|
||||||
|
|
||||||
for (index, key) in enumerate(params['keys'].value.splitlines(), 1):
|
for (index, key) in enumerate(params['keys'].value.splitlines(), 1):
|
||||||
user = 'admin'
|
user = 'admin'
|
||||||
if self.admin_user_exists() is not None:
|
if self.admin_user_exists() is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user