mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-24 20:48:01 +00:00
get nickname from seahub database (#663)
* Add parse seahub database config * Get nickname from seahub database * Go get nickname from seahub database * Save output of script to memory and fix some errors * Add exec permission and free child_output --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -24,6 +24,7 @@ struct _SeafileSession {
|
||||
GKeyFile *ccnet_config;
|
||||
SeafDB *db;
|
||||
SeafDB *ccnet_db;
|
||||
SeafDB *seahub_db;
|
||||
|
||||
SeafBlockManager *block_mgr;
|
||||
SeafFSManager *fs_mgr;
|
||||
|
@@ -218,6 +218,8 @@ seafile_session_new(const char *central_config_dir,
|
||||
goto onerror;
|
||||
}
|
||||
|
||||
load_seahub_database_config (session);
|
||||
|
||||
session->cfg_mgr = seaf_cfg_manager_new (session);
|
||||
if (!session->cfg_mgr)
|
||||
goto onerror;
|
||||
|
@@ -47,6 +47,7 @@ struct _SeafileSession {
|
||||
GKeyFile *ccnet_config;
|
||||
SeafDB *db;
|
||||
CcnetDB *ccnet_db;
|
||||
SeafDB *seahub_db;
|
||||
|
||||
SeafBlockManager *block_mgr;
|
||||
SeafFSManager *fs_mgr;
|
||||
|
Reference in New Issue
Block a user