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.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