„Pack/scripts/postuninst“ ändern

This commit is contained in:
Stephan 2021-07-03 13:21:13 +00:00
parent 17ac0c3924
commit 6d1d4bfdb8

View file

@ -1,3 +1,37 @@
#!/bin/sh
rm -f /usr/syno/synoman/webman/3rdparty/synOTR
# 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...
# -------------------------------------------------------------------------------------
# rm /tmp/${SYNOPKG_PKGNAME}.*
# DSM6:
# rm -f /usr/syno/synoman/webman/3rdparty/synOTR
exit 0