summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-10 15:32:29 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-10 15:32:29 +0100
commit17c4250b475c871004ea404c4d6c57ac68596353 (patch)
tree2c095bf4eeb1b36924f2a535a852437628a37638 /debian
parent6023d0ffc729e956df760122594853ba6b3c4fa6 (diff)
stop scanbd before move the home directroy
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog16
-rw-r--r--debian/sane-utils.postinst16
2 files changed, 23 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog
index 4007c7f..21eb493 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,15 +1,19 @@
-sane-backends (1.0.24-9) UNRELEASED; urgency=medium
+sane-backends (1.0.24-9) unstable; urgency=medium
- * Correct typo and add missing "-q" to line 33 of
- debian/sane-utils.postinst (Closes: #773826).
- - Thanks to "Nelson A. de Oliveira" <naoliv@debian.org>
+ * debian/sane-utils.postinst:
+ - Correct typo and add missing "-q" at line 33
+ (Closes: #773826).
+ Thanks to "Nelson A. de Oliveira" <naoliv@debian.org>.
+ - If scanbd is running add start/stop around the move of the
+ home directory (Closes: #774941).
+ Thanks to "Olaf Meeuwissen" <olaf.meeuwissen@avasys.jp>.
* debian/rules:
- Add line to extract the version from debian/changelog.
- Add version string to dpkg-gensymbols.
* debian/copyright:
- - Add years to 2014-2015 on my debian/* tag.
+ - Add year to 2015 on my debian/* tag.
- -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 28 Dec 2014 10:50:14 +0100
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 10 Jan 2015 13:56:10 +0100
sane-backends (1.0.24-8) unstable; urgency=medium
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
index c29b29c..83857a6 100644
--- a/debian/sane-utils.postinst
+++ b/debian/sane-utils.postinst
@@ -30,9 +30,19 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
fi
# Move home from /home/saned to /var/lib/saned
- if getent passwd | grep -q "^saned:" | grep "/home/saned"; then
- echo "Moving homedir from /home/saned to /var/lib/saned"
- usermod -d /var/lib/saned saned
+ if getent passwd | grep -q "^saned:" | grep -q "/home/saned"; then
+ echo "Test for running scanbd"
+ if ps -Af | grep -q "saned" | grep -q "scanbd"; then
+ echo "Stop scanbd"
+ invoke-rc.d --quiet scanbd stop
+ echo "Move homedir from /home/saned to /var/lib/saned"
+ usermod -d /var/lib/saned saned
+ echo "Start scanbd"
+ invoke-rc.d --quiet scanbd start
+ else
+ echo "Move homedir from /home/saned to /var/lib/saned"
+ usermod -d /var/lib/saned saned
+ fi
fi
if [ "$SANED_IN_SCANNER" = "true" ]; then
adduser --quiet saned scanner