summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sane-utils.postrm')
-rw-r--r--debian/sane-utils.postrm9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/sane-utils.postrm b/debian/sane-utils.postrm
index 275eee6..20d95a7 100644
--- a/debian/sane-utils.postrm
+++ b/debian/sane-utils.postrm
@@ -51,6 +51,15 @@ if [ "$1" = purge ] ; then
rm -f /var/run/saned.pid
fi
+#
+# remove user / group
+#
+ pathfind deluser || true
+ if [ $? = 0 ] ; then
+ deluser -q --group --system saned || true
+ deluser -q --group --system scanner || true
+ deluser -q --system --remove-all-files saned || true
+ fi
fi