summaryrefslogtreecommitdiff
path: root/debian/postrm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-04-19 14:37:42 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-04-19 14:37:42 (GMT)
commit6acaf4d7f6969002ab30f049ea7af4afc84ab8d9 (patch)
treeb3e5cd630bd0a88d659b12a66e2f6be8aa2f7073 /debian/postrm
parent9a74b857f449d9a2ac8cca76872a0ad69aec40f4 (diff)
inital debian packages
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..29437f4
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+# postrm script for rharchive
+
+set -e
+
+if [ "$1" = "purge" ] ; then
+ update-rc.d rharchive remove >/dev/null || exit $?
+
+ if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then
+ deluser --quiet --system rharchive || true
+ delgroup --quiet --system rharchive || true
+ else
+ echo "Not removing rharchive user and group: adduser package not found." >&2
+ fi
+fi