mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-05 10:26:43 +08:00
Seaf-cli set delete_confirm_threshold to 1000000 (#2785)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
parent
852eb96398
commit
71b85d5785
14
app/seaf-cli
14
app/seaf-cli
@ -404,6 +404,20 @@ def seaf_start_seafile(args):
|
||||
print('Failed to start seafile daemon')
|
||||
sys.exit(1)
|
||||
|
||||
seafile_rpc = get_rpc_client(conf_dir)
|
||||
i = 0
|
||||
while True:
|
||||
try:
|
||||
seafile_rpc.seafile_set_config_int("delete_confirm_threshold", 1000000)
|
||||
except Exception as e:
|
||||
if i > 3:
|
||||
break;
|
||||
i += 1
|
||||
time.sleep(1)
|
||||
continue
|
||||
else:
|
||||
break
|
||||
|
||||
print("Started: seafile daemon ...")
|
||||
|
||||
def seaf_stop(args):
|
||||
|
Loading…
Reference in New Issue
Block a user