Skip to content

Commit

Permalink
exclude dispensable directories from backup (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jan 13, 2019
1 parent d9257ba commit d871d73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ echo "installing www node modules"
cd $ADDON_TMP/redmatic/www
npm install --silent --no-package-lock --production --no-optional

echo "create .nobackup files"
touch $ADDON_TMP/redmatic/bin/.nobackup
touch $ADDON_TMP/redmatic/include/.nobackup
touch $ADDON_TMP/redmatic/lib/.nobackup
touch $ADDON_TMP/redmatic/libexec/.nobackup
touch $ADDON_TMP/redmatic/share/.nobackup
touch $ADDON_TMP/redmatic/var/node_modules/.nobackup
touch $ADDON_TMP/redmatic/www/.nobackup


echo "adapt Node-RED..."
rm -r $ADDON_TMP/redmatic/lib/node_modules/node-red/nodes/core/hardware

Expand Down

0 comments on commit d871d73

Please sign in to comment.