Skip to content

Commit 42704df

Browse files
committed
move node_modules invalidation to correct block
1 parent a3048b4 commit 42704df

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

plugin/plugins/dynamix.unraid.net.plg

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,6 @@ exit 0
159159
# Remove stale pnpm store archives from the boot drive
160160
find /boot/config/plugins/dynamix.my.servers/ -name "pnpm-store-for-v*.txz" ! -name "${VENDOR_ARCHIVE}" -delete
161161
162-
# If the unraid-api node_modules directory exists, delete the stale node_modules archive from the boot drive.
163-
# It will be rebuilt if the plugin install succeeds.
164-
if [ -d /usr/local/unraid-api/node_modules ]; then
165-
echo "Removing stale node_modules archive from the boot drive"
166-
rm -f /boot/config/plugins/dynamix.my.servers/node_modules.tar.gz
167-
fi
168-
169162
echo "Node.js installation successful"
170163
171164
exit 0
@@ -261,6 +254,7 @@ if [ -e /etc/rc.d/rc.unraid-api ]; then
261254
rm -rf /usr/local/unraid-api
262255
rm -rf /var/run/unraid-api.sock
263256
rm -rf /usr/.pnpm-store
257+
rm -f /boot/config/plugins/dynamix.my.servers/node_modules.tar.gz
264258
fi
265259
]]>
266260
</INLINE>

0 commit comments

Comments
 (0)