From bd3ca74175ffce4c824d4198d06b3451f03a5fc2 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Fri, 7 Nov 2025 12:47:19 +0100 Subject: [PATCH] Fix stale LXC entries and improve orphaned script cleanup - Improved cleanupOrphanedScripts to use pct list for more reliable container verification - Added batch processing by server for better efficiency - Added double-check with config file existence before deletion - Added manual cleanup button in Installed Scripts tab for on-demand cleanup - Improved error handling and logging throughout cleanup process - Fixes issue where deleted containers (like Planka) were still showing in the UI --- src/app/_components/InstalledScriptsTab.tsx | 12 ++ src/server/api/routers/installedScripts.ts | 153 ++++++++++++++------ 2 files changed, 121 insertions(+), 44 deletions(-) diff --git a/src/app/_components/InstalledScriptsTab.tsx b/src/app/_components/InstalledScriptsTab.tsx index 0e73dac..e00ff27 100644 --- a/src/app/_components/InstalledScriptsTab.tsx +++ b/src/app/_components/InstalledScriptsTab.tsx @@ -935,6 +935,18 @@ export function InstalledScriptsTab() { > {showAutoDetectForm ? 'Cancel Auto-Detect' : '๐Ÿ” Auto-Detect LXC Containers (Must contain a tag with "community-script")'} +