diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 9 | ||||
-rw-r--r-- | debian/sane-utils.postinst | 6 |
2 files changed, 11 insertions, 4 deletions
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 <debian@jff-webhosting.net> 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 <debian@jff-webhosting.net> 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" |