mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #201] [MERGED] fix: harden orphan cleanup to avoid false deletions #248
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/201
Author: @michelroegl-brunner
Created: 10/20/2025
Status: ✅ Merged
Merged: 10/20/2025
Merged by: @michelroegl-brunner
Base:
main← Head:fix/orphan-cleanup-race📝 Commits (1)
e4de9ccfix(installed-scripts): prevent false orphan deletions by awaiting SSH command completion and parsing combined output; add 15s timeout and warnings for diagnostics📊 Changes
1 file changed (+29 additions, -6 deletions)
View changed files
📝
src/server/api/routers/installedScripts.ts(+29 -6)📄 Description
This PR fixes intermittent false orphan removals by:
This should prevent erroneously removing installed scripts when the LXC exists but transient SSH output timing caused a false negative.
Fixes: intermittent cleanup misclassification observed after auto-detect.
Label: fix
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.