Skip to content

Commit

Permalink
move npm-cache to var and exclude from backup (close #409)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Oct 10, 2020
1 parent f2bfaf5 commit 98a06f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Empty file.
10 changes: 10 additions & 0 deletions addon_files/update_script
Expand Up @@ -135,6 +135,16 @@ if [ -d $RED_DIR/lib/node_modules/node-red-contrib-theme-midnight-red ]; then
fi


#
# Migration from <= 6.0.2
# Move npm-cache and exclude from backup
#
if [ -d $RED_DIR/npm-cache ]; then
mv $RED_DIR/npm-cache $RED_DIR/var/
touch $RED_DIR/var/npm-cache/.nobackup
fi


#
# Remove package-lock
#
Expand Down

0 comments on commit 98a06f2

Please sign in to comment.