Skip to content

Commit

Permalink
spksrc.service.installer.dsm7: Remove backup as unecessary
Browse files Browse the repository at this point in the history
Options passed to rsync makes it that no files should be left.
As such the backup never occurs as superseeded by the
--ignore-existing --remove-source-files switches passed to rsync
  • Loading branch information
th0ma7 committed Sep 10, 2021
1 parent ba61eaa commit 668f8df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mk/spksrc.service.installer.dsm7
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,11 @@ preupgrade ()
call_func "validate_preupgrade"

# dsm6 -> dsm7
# Backup & Migrate data once to permanent storage
# Migrate data once to permanent storage
if [ -d ${SYNOPKG_PKGDEST}/var -a ! "$(ls -A ${SYNOPKG_PKGVAR})" ]; then
echo "$RSYNC --ignore-existing ${SYNOPKG_PKGDEST}/var/ ${SYNOPKG_PKGVAR}" | install_log
$RSYNC --ignore-existing ${SYNOPKG_PKGDEST}/var/ ${SYNOPKG_PKGVAR} 2>&1 | install_log && chk=$?
$TAR -C ${SYNOPKG_PKGDEST} -Jcf - var > ${SYNOPKG_PKGVAR}/var-preDSM7-$(date +%Y%m%d-%H%M).tar.xz | install_log && chk="${chk}$?"
[ "${chk}" = "00" ] && rm -fr ${SYNOPKG_PKGDEST}/var || true
[ "${chk}" = "0" ] && rm -fr ${SYNOPKG_PKGDEST}/var || true
fi

call_func "service_preupgrade" install_log
Expand All @@ -253,5 +252,6 @@ postupgrade ()
call_func "service_restore" install_log
call_func "syno_sync_app_folders" install_log
call_func "service_postupgrade" install_log

exit 0
}

0 comments on commit 668f8df

Please sign in to comment.