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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user