Skip to content

Commit

Permalink
create backup of settings.js on update
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Apr 30, 2018
1 parent ed88266 commit a0fdd0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon_files/update_script
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ mkdir -p /usr/local/addons && chmod 755 /usr/local/addons
mkdir -p /usr/local/etc/profile.d
echo "export NO_UPDATE_NOTIFIER=true" > /usr/local/etc/profile.d/node-red.sh

if [ -f $RED_DIR/settings.js ]; then
cp $RED_DIR/settings.js $RED_DIR/settings.js.old
fi

cp -af node-red $RED_DIR

mkdir -p $CONF_DIR/lighttpd
Expand Down

0 comments on commit a0fdd0c

Please sign in to comment.