Skip to content

Commit

Permalink
Fix backup file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Oct 22, 2023
1 parent 8434e09 commit 153d532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spk/owncloud/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 153d532

Please sign in to comment.