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