„Pack/scripts/preuninst“ ändern

This commit is contained in:
Stephan 2021-07-03 14:41:07 +00:00
parent 0235707664
commit 7df13663c2

View file

@ -1,5 +1,33 @@
#!/bin/sh
# Script Environment Variables
# -------------------------------------------------------------------------------------
# SYNOPKG_PKGNAME = Package identify which is defined in INFO
# SYNOPKG_PKGVER = Package version which is defined in INFO
# SYNOPKG_PKGDEST = Package destination path
# /volume[x]/@appstore/[Package Name]
# SYNOPKG_TEMP_UPGRADE_FOLDER = Temporary upgrade folder
# /volume1/@tmp/synopkg.tmp/[Package Name]
# -------------------------------------------------------------------------------------
# Important Paths, soft links and variables
# -------------------------------------------------------------------------------------
# DSM WebGUI folder
# /usr/syno/synoman/webman/3rdparty/[Package Name] -> /var/packages/[Package Name]/target
WEBGUI_FOLDER="/usr/syno/synoman/webman/3rdparty/${SYNOPKG_PKGNAME}"
# Soft link
# /var/packages/[Package Name]/target -> /volume1/@appstore/[Package Name]
PACKAGE_FOLDER="/var/packages/${SYNOPKG_PKGNAME}/target/ui"
# Timestamp - Formatting the Timestamp to terminate log entries
TIMESTAMP=$(date +%Y-%m-%d%t%H:%M:%S)
# -------------------------------------------------------------------------------------
# Action...
# -------------------------------------------------------------------------------------
if [ "$pkgwizard_remove_cronjob" != "true" ]; then
exit 0