diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-06-16 14:54:34 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-06-16 14:54:34 +0200 |
commit | cf1a4e9bd5de825681006ab8e3dcf338c548fee7 (patch) | |
tree | e58705b5aa70c26e9a1e96a68c3ad9f467f3887f /debian/sane-utils.postrm | |
parent | a711fdac5db90cd872a5b18b4a923d66b67a202b (diff) |
Fix pathfind handling
Diffstat (limited to 'debian/sane-utils.postrm')
-rw-r--r-- | debian/sane-utils.postrm | 6 |
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 |