* Check if repo_id is valid and set repo_id to VRepoInfo
* Don't retain when traverse base commit
* Skip check blocks when verify base commit
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
* Read database config from seafile.conf and env
* Go read database config from seafile.conf and env
* Delete ccnet.conf
* Don't need ccnet_db_name config
* Add ccnet db name env
* Delete unix_socket and don't return error when failed to read from seafile.conf
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
* Add online gc core
* Add check gc when update repo
* Go add check gc when update repo
* Add gc unit test
* Support set pwd_hash for gc and fsck
* Optimize to check if block exists
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
* Format c log
* Format go log
* Add SEAFILE_LOG_TO_STDOUT env
* Modify parameters name
* Set stdout to output
* Add app name and print error log
* Disable daemon mode when SEAFILE_LOG_TO_STDOUT is true
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
* 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>
* Support argon2id password hash algo
* CI install argon2 deps
* Go support argonid algo
* RPC add pwd_hash_algo and pwd_hash_params
* Support password hash algo
* Don't set magic when pwd_hash is set
* Fix ci error
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
* merge the api of ccnet into seafile
* merge the api of ccnet into seafile
* Dont't need to include the header
* merge the api of ccnet into seafile
* add enable ldap
* The unit test dont't need to start ccnet-server
* Modify some funcion names and fuse don't need org management
* Modify indent