From 3bfcc8e8c0480df3f6452efea752461bf52cdc4b Mon Sep 17 00:00:00 2001 From: Pujit Mehrotra Date: Thu, 20 Mar 2025 10:18:40 -0400 Subject: [PATCH] fix: node installation not persisting across reboots (#1256) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thank you to SteveHawk on the unraid.net forums for surfacing this: https://forums.unraid.net/topic/188319-persist-node-package-download/ ## Summary by CodeRabbit - **Bug Fixes** - Improved the plugin’s file-cleanup process by correcting the reference used to identify outdated Node.js archive files. This update ensures that file management functions as intended, contributing to more reliable plugin behavior. --- plugin/plugins/dynamix.unraid.net.plg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/plugins/dynamix.unraid.net.plg b/plugin/plugins/dynamix.unraid.net.plg index f20269ece..008222d8f 100755 --- a/plugin/plugins/dynamix.unraid.net.plg +++ b/plugin/plugins/dynamix.unraid.net.plg @@ -134,7 +134,7 @@ exit 0 fi # Remove all node js archives from the flashdrive that do not match the expected version - find /boot/config/plugins/dynamix.my.servers/ -name "node-v*-linux-x64.tar.xz" ! -name "&NODEJS_FILENAME;" -delete + find /boot/config/plugins/dynamix.my.servers/ -name "node-v*-linux-x64.tar.xz" ! -name "${NODE_FILE}" -delete echo "Node.js installation successful"