summaryrefslogtreecommitdiff
path: root/debian/hurd.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/hurd.postrm')
-rw-r--r--debian/hurd.postrm20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/hurd.postrm b/debian/hurd.postrm
new file mode 100644
index 00000000..ea209f71
--- /dev/null
+++ b/debian/hurd.postrm
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = purge ]; then
+ remove-shell /bin/loginpr
+ if ! deluser --quiet --system login > /dev/null; then
+ echo "
+Removing the user 'login' failed, most likely because the user is still
+logged in. To remove the user and group terminate the session in question
+and execute
+
+ deluser --quiet --system login
+ delgroup --quiet --system login
+"
+ else
+ delgroup --quiet --system login > /dev/null || true
+ fi
+fi
+
+#DEBHELPER#