mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-17 15:50:07 +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:
3
scripts/Makefile.am
Normal file
3
scripts/Makefile.am
Normal file
@@ -0,0 +1,3 @@
|
||||
bin_SCRIPTS = parse_seahub_db.py
|
||||
|
||||
EXTRA_DIST = parse_seahub_db.py
|
6
scripts/parse_seahub_db.py
Executable file
6
scripts/parse_seahub_db.py
Executable file
@@ -0,0 +1,6 @@
|
||||
import json
|
||||
import seahub_settings
|
||||
|
||||
db_infos = seahub_settings.DATABASES['default']
|
||||
|
||||
print(json.dumps(db_infos))
|
Reference in New Issue
Block a user