From 13dd93a1aa3e9e2277607493f3b8aa48e10e5684 Mon Sep 17 00:00:00 2001 From: S Date: Mon, 2 Mar 2026 19:19:54 -0500 Subject: [PATCH] fix: use sudo for data removal in phase1_teardown.sh to ensure permissions --- phase1_teardown.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phase1_teardown.sh b/phase1_teardown.sh index 38ed58a..7707658 100755 --- a/phase1_teardown.sh +++ b/phase1_teardown.sh @@ -101,7 +101,7 @@ if [[ -n "$running_container" ]]; then log_warn "Stop the container first, then re-run teardown to remove data." elif ssh_exec UNRAID "test -d '${DATA_PATH}'" 2>/dev/null; then if confirm_action "$(printf 'Remove ALL Gitea data at %s? This is IRREVERSIBLE. [y/N] ' "$DATA_PATH")"; then - if ssh_exec UNRAID "rm -rf '${DATA_PATH}'"; then + if ssh_exec UNRAID "sudo rm -rf '${DATA_PATH}'"; then log_success "All Gitea data removed from Unraid" else log_error "Failed to remove data directory ${DATA_PATH}"