mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
remove first admin init from seafile-server
This commit is contained in:
parent
7ba4720d31
commit
abf5bf52e5
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue