HEX
Server: Apache/2.4.63 (Unix)
System: Linux Synopilou92 4.4.302+ #72806 SMP Mon Jul 21 23:16:00 CST 2025 x86_64
User: pilou92 (1026)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /volume1/@appstore/VPNCenter/scripts/update-vpn-server.sh
#!/bin/sh

#####################################################
# This hook is invoked when changing DSM certificate
# Usable environment variable: None
#####################################################

PACKAGE_LOCATION="/var/packages/VPNCenter"

case $1 in
	--sdk-mod-ver)
		echo "1.0"
		;;
	--name)
		;;
	--pkg-ver)
		;;
	--vendor)
		;;
	--pre)
		;;
	--post)
		${PACKAGE_LOCATION}/scripts/start-stop-status stop
		${PACKAGE_LOCATION}/scripts/start-stop-status start
		;;
	*)
		echo "Usage: $0 --sdk-mod-ver|--name|--pkg-ver|--vendor|--pre|--post"
		;;
esac