summaryrefslogtreecommitdiff
path: root/debian/vanity.postrm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-11 02:18:08 +0100
committerChristian Pointner <equinox@spreadspace.org>2016-01-11 02:18:08 +0100
commit7eacf20f84103483d8b69bc3131435979d498850 (patch)
tree021fa5706dd51ee59bc81cc90f8289d910121622 /debian/vanity.postrm
parentadded missing files (diff)
also create special user for vanity to run as
Diffstat (limited to 'debian/vanity.postrm')
-rw-r--r--debian/vanity.postrm17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/vanity.postrm b/debian/vanity.postrm
new file mode 100644
index 0000000..96bb01d
--- /dev/null
+++ b/debian/vanity.postrm
@@ -0,0 +1,17 @@
+#!/bin/sh
+# postrm script for vanity
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "purge" ] ; then
+ if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then
+ deluser --quiet --system vanity || true
+ delgroup --quiet --system vanity || true
+ else
+ echo "Not removing vanity user and group: adduser package not found." >&2
+ fi
+fi
+
+exit 0