summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postrm
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-05-18 07:43:35 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-05-18 07:43:35 +0200
commit9f8889f928ce86ba4a78659d378c6ba29bc9f735 (patch)
treec9567cb0d015b68ce3da8d03472b6443f1cb1ca9 /debian/sane-utils.postrm
parent446e9454b8cbe5b689149415d11d36e88442ca88 (diff)
parent154785ab2d5df7ddc8c2cf813b773c340e5e2aea (diff)
Merge branch 'release/debian/1.0.32-1'debian/1.0.32-1
Diffstat (limited to 'debian/sane-utils.postrm')
-rw-r--r--debian/sane-utils.postrm11
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/sane-utils.postrm b/debian/sane-utils.postrm
index 275eee6..30e2a2d 100644
--- a/debian/sane-utils.postrm
+++ b/debian/sane-utils.postrm
@@ -26,7 +26,7 @@ pathfind() {
if [ "$1" = purge ] ; then
- pathfind update-inetd || true
+ pathfind update-inetd
if [ $? = 0 ] ; then
update-inetd --remove sane-port || true
update-inetd --remove "#<off># sane-port" || true
@@ -51,6 +51,15 @@ if [ "$1" = purge ] ; then
rm -f /var/run/saned.pid
fi
+#
+# remove user / group
+#
+ pathfind deluser
+ 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