summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sane-utils.postinst')
-rw-r--r--debian/sane-utils.postinst16
1 files changed, 0 insertions, 16 deletions
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
index 4d8e9b1..b026a6e 100644
--- a/debian/sane-utils.postinst
+++ b/debian/sane-utils.postinst
@@ -46,22 +46,6 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
adduser --home /var/lib/saned --quiet --system --group saned || true
fi
- # Move home from /home/saned to /var/lib/saned (since 1.0.24-6)
- if getent passwd | grep "^saned:" | grep -q "/home/saned"; then
- echo "Test for running scanbd"
- if ps -Af | grep "saned" | grep -q "scanbd"; then
- echo "Stop scanbd"
- invoke-rc.d --quiet scanbd stop
- echo "Move homedir from /home/saned to /var/lib/saned"
- usermod -d /var/lib/saned saned
- echo "Start scanbd"
- invoke-rc.d --quiet scanbd start
- else
- echo "Move homedir from /home/saned to /var/lib/saned"
- usermod -d /var/lib/saned saned
- fi
- fi
-
if [ ! -d /var/lib/saned ] ; then
usermod -d /var/lib/saned saned
fi