summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postrm
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-06-20 10:41:31 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-06-20 10:41:31 +0200
commitc9f5ad0cbc1a0d11083d0b164bc3eb141075c732 (patch)
tree125e17f6846ac2f1e4d1f51764244b2057c01b01 /debian/sane-utils.postrm
parent9f8889f928ce86ba4a78659d378c6ba29bc9f735 (diff)
parent1b9bdb7e4460eb595004ec08afc14c7bad60af58 (diff)
Merge branch 'release/debian/1.0.32-2'debian/1.0.32-2
Diffstat (limited to 'debian/sane-utils.postrm')
-rw-r--r--debian/sane-utils.postrm6
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/sane-utils.postrm b/debian/sane-utils.postrm
index 30e2a2d..9f4ef99 100644
--- a/debian/sane-utils.postrm
+++ b/debian/sane-utils.postrm
@@ -26,8 +26,7 @@ pathfind() {
if [ "$1" = purge ] ; then
- pathfind update-inetd
- if [ $? = 0 ] ; then
+ if pathfind update-inetd ; then
update-inetd --remove sane-port || true
update-inetd --remove "#<off># sane-port" || true
fi
@@ -54,8 +53,7 @@ if [ "$1" = purge ] ; then
#
# remove user / group
#
- pathfind deluser
- if [ $? = 0 ] ; then
+ if pathfind deluser ; then
deluser -q --group --system saned || true
deluser -q --group --system scanner || true
deluser -q --system --remove-all-files saned || true