diff options
author | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2018-06-27 11:21:00 -0300 |
---|---|---|
committer | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2018-06-27 11:21:00 -0300 |
commit | 06dbce29e39cabc4f72a91f23fb261ffa2499870 (patch) | |
tree | bc216ad72139fd601fa19fb2ab950d86881a3d8e /net/seafile-server | |
parent | 65b01bb7524f1da6f498c0b9f44873a423078e50 (diff) |
seafile-server: avoid error creating superuser
Make sure ccnet-server is running during the final setup step to avoid
an error creating django superuser
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Diffstat (limited to 'net/seafile-server')
-rw-r--r-- | net/seafile-server/patches/100-seafile-admin-Make-sure-ccnet-is-running.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/seafile-server/patches/100-seafile-admin-Make-sure-ccnet-is-running.patch b/net/seafile-server/patches/100-seafile-admin-Make-sure-ccnet-is-running.patch new file mode 100644 index 000000000..a665e4528 --- /dev/null +++ b/net/seafile-server/patches/100-seafile-admin-Make-sure-ccnet-is-running.patch @@ -0,0 +1,26 @@ +--- a/tools/seafile-admin ++++ b/tools/seafile-admin +@@ -831,7 +831,22 @@ def setup_seafile(args): + conf[CONF_SEAFILE_CENTRAL_CONF_DIR] = os.path.join(cwd, 'conf') + config_ccnet_seafile() + init_ccnet_seafile() +- init_seahub() ++ ++ # make sure ccnet-server is running to avoid an error creating django superuser ++ if not is_running('ccnet-server'): ++ argv = [ ++ 'ccnet-server', ++ '-F', ++ conf[CONF_SEAFILE_CENTRAL_CONF_DIR], ++ '-c', ++ conf[CONF_CCNET_DIR], ++ '-d' ++ ] ++ run_argv(argv) ++ init_seahub() ++ pkill('ccnet-server') ++ else: ++ init_seahub() + + print + print '-----------------------------------------------------------------' |