#!/bin/sh
# synopkgland: the SDK steps run in synopkgland_sdk; the App's dsm-scripts/postinst runs from scripts/app/postinst.
synopkgland_sdk() (
"${SYNOPKG_PKGDEST:-/var/packages/SynoReclaim/target}/executor/lifecycle" start --package SynoReclaim || exit $?
exit 0
)
synopkgland_app="$(dirname "$0")/app/postinst"
synopkgland_sdk "$@" || exit $?
exec "$synopkgland_app" "$@"
