Seaf-cli set delete_confirm_threshold to 1000000 (#2785)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks 2024-06-26 18:50:33 +08:00 committed by GitHub
parent 852eb96398
commit 71b85d5785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):