From 6779db023ae7f2c626ecdff1cb95bd98856fbefa Mon Sep 17 00:00:00 2001 From: shuki Date: Thu, 5 Mar 2026 03:28:39 +0200 Subject: [PATCH] Fix restore: remove invalid --skipbw flag from removeacct The /scripts/removeacct command only accepts --force and --keepdns. The --skipbw flag is not a valid option and was causing account termination to fail during full account restore with terminate enabled. Co-Authored-By: Claude Opus 4.6 --- lib/restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/restore.sh b/lib/restore.sh index 765de5c..da838b7 100644 --- a/lib/restore.sh +++ b/lib/restore.sh @@ -131,7 +131,7 @@ restore_full_account() { # Terminate existing account if requested if [[ "$terminate" == "true" ]] && account_exists "$user"; then log_info "Terminating existing account $user before restore..." - if ! /scripts/removeacct --skipbw --force "$user"; then + if ! /scripts/removeacct --force "$user"; then log_error "Failed to terminate account $user" rm -rf "$restore_dir" return 1