24 lines
440 B
Bash
Executable File
24 lines
440 B
Bash
Executable File
[ -z "$PLESK_INSTALLER_DEBUG" ] || set -x
|
|
[ -z "$PLESK_INSTALLER_STRICT_MODE" ] || set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
configure|reconfigure)
|
|
if [ -z "$2" ]; then
|
|
/bin/systemctl enable sw-engine.service >/dev/null 2>&1 || true
|
|
else
|
|
/bin/systemctl try-restart sw-engine.service || true
|
|
fi
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
|
|
# vim:ft=sh:
|