25 lines
438 B
Bash
Executable File
25 lines
438 B
Bash
Executable File
#!/bin/sh
|
|
[ -z "$PLESK_INSTALLER_DEBUG" ] || set -x
|
|
[ -z "$PLESK_INSTALLER_STRICT_MODE" ] || set -e
|
|
|
|
# MB sdf should be enough?
|
|
run_packagemng()
|
|
{
|
|
local binary="/usr/local/psa/admin/sbin/packagemng"
|
|
[ ! -x "$binary" ] || "$binary" -sdf || :
|
|
}
|
|
|
|
|
|
case "$1" in
|
|
configure|reconfigure)
|
|
run_packagemng
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|