From c8cf23699feb55f0b754cfe9c14aced1ba4f56c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 13 Dec 2014 17:46:39 +0100 Subject: Debian bugs#665915, #769196, #772955 --- debian/sane-utils.postinst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/sane-utils.postinst') 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 -- cgit v1.2.3