summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
commitb2802d98d4486d6afc585062f4ca02fddf829dc5 (patch)
treeb74907ddd07161872edfa3d8be1a4ece63a6ec62 /debian/sane-utils.postinst
parent29eaee2cf7c71df75a2d31f82738cc3a060f7a88 (diff)
Release 1.0.25+git20150102-1
Diffstat (limited to 'debian/sane-utils.postinst')
-rw-r--r--debian/sane-utils.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
index 4f16f0a..c29b29c 100644
--- a/debian/sane-utils.postinst
+++ b/debian/sane-utils.postinst
@@ -30,8 +30,8 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
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"
+ 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
fi
if [ "$SANED_IN_SCANNER" = "true" ]; then