summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-13 17:46:39 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-13 17:46:39 +0100
commitc8cf23699feb55f0b754cfe9c14aced1ba4f56c7 (patch)
tree0d239a01febe1b98d72a35d5afb3d318bf00333e /debian/sane-utils.postinst
parente8d15e0ead6e5951b528edcaf2c8cbafdceb3ffe (diff)
Debian bugs#665915, #769196, #772955debian/1.0.24-6
Diffstat (limited to 'debian/sane-utils.postinst')
-rw-r--r--debian/sane-utils.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
index cd2aff3..4f16f0a 100644
--- a/debian/sane-utils.postinst
+++ b/debian/sane-utils.postinst
@@ -29,6 +29,11 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
adduser --home /var/lib/saned --quiet --system --no-create-home --group saned || true
fi
+ # Move home from /home/saned to /var/lib/saned
+ if getent passwd | grep "^saned:" | grep "/home/saned"; then
+ echo "Moveing homedir from /home/saned to /var/lib/saned"
+ usermod -d /var/lib/saned saned
+ fi
if [ "$SANED_IN_SCANNER" = "true" ]; then
adduser --quiet saned scanner
else