From 153d5325935c377cc31abaa70546cffafae8ee4e Mon Sep 17 00:00:00 2001 From: mreid-tt <943378+mreid-tt@users.noreply.github.com> Date: Sun, 22 Oct 2023 05:38:46 -0400 Subject: [PATCH] Fix backup file naming --- spk/owncloud/src/service-setup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spk/owncloud/src/service-setup.sh b/spk/owncloud/src/service-setup.sh index f08d6aa58b0..a050ba3aa4e 100755 --- a/spk/owncloud/src/service-setup.sh +++ b/spk/owncloud/src/service-setup.sh @@ -15,7 +15,6 @@ SQLITE="/bin/sqlite3" JQ="/bin/jq" SED="/bin/sed" SYNOSVC="/usr/syno/sbin/synoservice" -VER_NUM=$(echo ${SYNOPKG_PKGVER} | cut -d'-' -f1) if [ ${SYNOPKG_DSM_VERSION_MAJOR} -lt 7 ]; then GROUP="http" @@ -254,7 +253,7 @@ service_preuninst () fi # Prepare archive structure - TEMPDIR="${SYNOPKG_PKGTMP}/${SYNOPKG_PKGNAME}_backup_v$(VER_NUM)_$(date +"%Y%m%d")" + TEMPDIR="${SYNOPKG_PKGTMP}/${SYNOPKG_PKGNAME}_backup_v$(SPK_VERS)_$(date +"%Y%m%d")" ${MKDIR} "${TEMPDIR}" # Place server in maintenance mode