Skip to content

Commit

Permalink
Framework: DSM7 Make sure folder exists before migrating files
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Feb 1, 2021
1 parent 7b0fad6 commit 6dd0edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/spksrc.service.installer.dsm7
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ postinst ()

# copy target/var data to permanent storage
# and don't override old configurations
if [ "$(find ${SYNOPKG_PKGVAR} -mindepth 1 -not -name '*.log' -print)" = "" ]; then
if [ -d ${SYNOPKG_PKGDEST}/var ] && [ "$(find ${SYNOPKG_PKGVAR} -mindepth 1 -not -name '*.log' -print)" = "" ]; then
$CP -RT ${SYNOPKG_PKGDEST}/var/. ${SYNOPKG_PKGVAR}
fi

Expand Down

0 comments on commit 6dd0edd

Please sign in to comment.