remove first admin init from seafile-server

This commit is contained in:
Gerrit Gogel 2021-01-28 00:40:14 +01:00
parent 7ba4720d31
commit abf5bf52e5

View file

@ -70,21 +70,7 @@ def main():
fix_gunicorn_bind() fix_gunicorn_bind()
admin_pw = { call('{} start'.format(get_script('seafile.sh')))
'email': get_conf('SEAFILE_ADMIN_EMAIL', 'me@example.com'),
'password': get_conf('SEAFILE_ADMIN_PASSWORD', 'asecret'),
}
password_file = join(topdir, 'conf', 'admin.txt')
with open(password_file, 'w') as fp:
json.dump(admin_pw, fp)
try:
call('{} start'.format(get_script('seafile.sh')))
#call('{} start'.format(get_script('seahub.sh')))
finally:
if exists(password_file):
os.unlink(password_file)
print('seafile server is running now.') print('seafile server is running now.')
try: try: