30 lines
383 B
Bash
Executable File
30 lines
383 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -z "$PLESK_INSTALLER_DEBUG" ] || set -x
|
|
[ -z "$PLESK_INSTALLER_STRICT_MODE" ] || set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
remove|deconfigure)
|
|
if which systemctl 1>/dev/null 2>&1; then
|
|
systemctl stop "dbus-com.plesk.ext.ruby.rbenv.service"
|
|
fi
|
|
;;
|
|
|
|
upgrade|failed-upgrade)
|
|
;;
|
|
|
|
*)
|
|
echo "prerm called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
# vim:ft=sh
|