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/postrm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/postrm (limited to 'debian/postrm') diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..87735c2 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,23 @@ +#!/bin/sh +set -e + +#DEBHELPER# +OUT=/dev/null +HOME=/var/stackbin +SERVICE=stackbin + +case "$1" in + purge) + update-rc.d -f ${SERVICE} remove + rm -f ${HOME}/upload/.*.meta 1>${OUT} 2>&1 || : + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +exit 0 -- cgit