Skip to content

Commit

Permalink
Fix archive permissions in DSM 6
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Nov 8, 2023
1 parent 8b59e5d commit 428db46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spk/owncloud/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ service_postinst ()
TEMPDIR="${SYNOPKG_PKGTMP}/${SYNOPKG_PKGNAME}"
${MKDIR} "${TEMPDIR}"
${TAR} -xzf "${wizard_backup_file}" -C "${TEMPDIR}" 2>&1
# Fix file ownership
if [ ${SYNOPKG_DSM_VERSION_MAJOR} -lt 7 ]; then
chown -R ${WEB_USER}:${WEB_GROUP} ${TEMPDIR} 2>/dev/null
fi

# Restore configuration files and directories
rsync -aX --update -I "${TEMPDIR}/configs/root/.user.ini" "${TEMPDIR}/configs/root/.htaccess" "${OCROOT}/" 2>&1
Expand Down

0 comments on commit 428db46

Please sign in to comment.