From 71b85d57856eeda5c17642d8e8ef7469b267357c Mon Sep 17 00:00:00 2001 From: feiniks <36756310+feiniks@users.noreply.github.com> Date: Wed, 26 Jun 2024 18:50:33 +0800 Subject: [PATCH] Seaf-cli set delete_confirm_threshold to 1000000 (#2785) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 杨赫然 --- app/seaf-cli | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/seaf-cli b/app/seaf-cli index 35f7b5d7..1fe1852e 100755 --- a/app/seaf-cli +++ b/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):