File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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
264258fi
265259 ]]>
266260 </INLINE >
You can’t perform that action at this time.
0 commit comments