From 364eb6272643305993deb3fb7ff453fc7e197906 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Fri, 21 Feb 2025 14:12:21 -0500 Subject: [PATCH] fix/plugin-always-restores (#1184) ## Summary by CodeRabbit - **New Features** - Enhanced the plugin uninstallation process to ensure that system files are properly restored during removal. This update uses a temporary flag to trigger restoration only when needed and cleans up afterward, ensuring a smooth and reliable uninstallation experience. --- plugin/plugins/dynamix.unraid.net.plg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/plugins/dynamix.unraid.net.plg b/plugin/plugins/dynamix.unraid.net.plg index f46701133..f82a9470d 100755 --- a/plugin/plugins/dynamix.unraid.net.plg +++ b/plugin/plugins/dynamix.unraid.net.plg @@ -349,6 +349,7 @@ echo "⚠️ Do not close this window yet" echo if [ -e /etc/rc.d/rc.unraid-api ]; then + touch /tmp/restore-files-dynamix-unraid-net # stop flash backup /etc/rc.d/rc.flash_backup stop &>/dev/null # stop the api gracefully @@ -386,7 +387,7 @@ fi