Skip to content

Commit

Permalink
Seaf-cli set delete_confirm_threshold to 1000000 (#2785)
Browse files Browse the repository at this point in the history
Co-authored-by: 杨赫然 <[email protected]>
  • Loading branch information
feiniks and 杨赫然 authored Jun 26, 2024
1 parent 852eb96 commit 71b85d5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/seaf-cli
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 71b85d5

Please sign in to comment.