„Pack/scripts/postinst“ ändern

This commit is contained in:
Stephan 2021-07-03 13:19:46 +00:00
parent e251f5e2d8
commit 17ac0c3924

View file

@ -1,5 +1,37 @@
#!/bin/sh
LOG="/var/packages/${SYNOPKG_PKGNAME}/log"
ln -s $SYNOPKG_PKGDEST /usr/syno/synoman/webman/3rdparty/synOTR
date +'%c installed' >> $LOG
exit 0
# 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...
# -------------------------------------------------------------------------------------
# DSM6:
# LOG="/var/packages/${SYNOPKG_PKGNAME}/log"
# ln -s $SYNOPKG_PKGDEST /usr/syno/synoman/webman/3rdparty/synOTR
# date +'%c installed' >> $LOG
exit 0