From 5ef64880f0b266d709b0da6807a461b04ff575ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 21 May 2015 08:27:55 +0200 Subject: Debian bug #785709 --- debian/changelog | 9 ++++++++- debian/sane-utils.postinst | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 9a38a3b..bc1379d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +sane-backends (1.0.24-12) UNRELEASED; urgency=medium + + * debian/sane-utils.postinst: + - Fix home directory move (Closes: #785709). + + -- Jörg Frings-Fürst Thu, 21 May 2015 08:25:53 +0200 + sane-backends (1.0.24-11) unstable; urgency=medium * debian/control: @@ -5,7 +12,7 @@ sane-backends (1.0.24-11) unstable; urgency=medium dpkg needs to be installed for the rm_conffile command to work (Closes: #784763). * debian/libsane-common.preinst: - - Fix syntax for calling dpkg-maintscript-helper. + - Fix syntax for calling dpkg-maintscript-helper. -- Jörg Frings-Fürst Fri, 08 May 2015 22:02:11 +0200 diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst index f3e5f2d..155ed22 100644 --- a/debian/sane-utils.postinst +++ b/debian/sane-utils.postinst @@ -50,10 +50,10 @@ 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 -q "^saned:" | grep -q "/home/saned"; then + # 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 -q "saned" | grep -q "scanbd"; then + 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" -- cgit v1.2.3