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,22 +70,8 @@ def main():
fix_gunicorn_bind()
admin_pw = {
'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)
call('{} start'.format(get_script('seafile.sh')))
print('seafile server is running now.')
try:
watch_controller()