From 74df938e450def2ee3e2864d4b928f53a68e9eb8 Mon Sep 17 00:00:00 2001 From: ljm42 Date: Mon, 8 Dec 2025 14:18:34 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20when=20cancelling=20OS=20upgrade,=20del?= =?UTF-8?q?ete=20any=20plugin=20files=20that=20were=20d=E2=80=A6=20(#1823)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ownloaded as part of the upgrade ## Summary by CodeRabbit * **Bug Fixes** * Improved cleanup of temporary plugin configuration files during update cancellation operations. ✏️ Tip: You can customize this high-level summary in your review settings. --- .../dynamix.plugin.manager/include/UnraidUpdateCancel.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidUpdateCancel.php b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidUpdateCancel.php index 6180dd041..1b5928a59 100644 --- a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidUpdateCancel.php +++ b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/include/UnraidUpdateCancel.php @@ -46,6 +46,11 @@ class UnraidUpdateCancel $readmeContent .= "Unraid OS by [Lime Technology, Inc.](https://lime-technology.com).\n"; file_put_contents($readmeFile, $readmeContent); + // Delete plugin files that were downloaded during the OS upgrade + if (is_dir("/boot/config/plugins-nextboot")) { + shell_exec("rm -rf /boot/config/plugins-nextboot"); + } + return ['success' => true]; // Upgrade handled successfully } catch (\Throwable $th) { return [