diff options
Diffstat (limited to 'debian/prerm')
-rw-r--r-- | debian/prerm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..a0e1dcb --- /dev/null +++ b/debian/prerm @@ -0,0 +1,34 @@ +#!/bin/sh +set -e + +OUT=/dev/null +HOME=/var/www/fuss +SERVICE=fuss + +case "$1" in + remove) + test -x /usr/sbin/invoke-rc.d && \ + INIT="invoke-rc.d ${SERVICE}" || \ + INIT="/etc/init.d/${SERVICE}" + ${INIT} stop + ;; + + purge) + rm -f ${HOME}/fuss.pid 1>${OUT} 2>&1 || : + ;; + + upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |