From df2fbdc9bd4387ee72d2b38df9abf0778175c2d4 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 15 Feb 2022 22:49:00 -0500 Subject: add initial debian package recipe --- debian/prerm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 debian/prerm (limited to 'debian/prerm') diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..8c70071 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,33 @@ +#!/bin/sh +set -e +OUT=/dev/null +HOME=/var/stackbin +SERVICE=stackbin + +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}/${SERVICE}-wsgi.pid 1>${OUT} 2>&1 || : + ;; + + upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit