From badcb48cd279f0e2a0ed7eae2661171f2411e647 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 7 Jan 2021 20:52:38 -0500 Subject: initial commit --- debian/prerm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 debian/prerm (limited to 'debian/prerm') 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 -- cgit