diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-12-13 17:46:39 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-12-13 17:46:39 +0100 |
commit | c8cf23699feb55f0b754cfe9c14aced1ba4f56c7 (patch) | |
tree | 0d239a01febe1b98d72a35d5afb3d318bf00333e /debian/sane-utils.postinst | |
parent | e8d15e0ead6e5951b528edcaf2c8cbafdceb3ffe (diff) |
Debian bugs#665915, #769196, #772955debian/1.0.24-6
Diffstat (limited to 'debian/sane-utils.postinst')
-rw-r--r-- | debian/sane-utils.postinst | 5 |
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 |