Skip to content

Commit

Permalink
fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Nov 14, 2021
1 parent 7bbf836 commit d1044f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/addon/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7
5.8
5 changes: 5 additions & 0 deletions src/rc.d/jp-hb-devices-addon
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ case "$1" in
### delete the old (current) addon directory and rename the newly uploaded
if [ -d ${NEW_ADDON_DIR} ]; then
if [ -d ${ADDON_DIR} ]; then
### backup customized_firmware files in new addon directory, before deleting the old (current) one!
if [ "$(find ${CUSTOMIZED_FIRMWARE_DIR} -type f -iname '*.xml')" ]; then
echo "Copying customized firmware files to new addon directory" | tee -a $TMP_LOGFILE
cp ${CUSTOMIZED_FIRMWARE_DIR}/*.xml ${NEW_ADDON_DIR}/customized_firmware/
fi
echo "Deleting current addon directory " | tee $TMP_LOGFILE
rm -rf ${ADDON_DIR}
fi
Expand Down

0 comments on commit d1044f9

Please sign in to comment.