summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-02-07 06:56:10 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-02-07 06:56:10 +0100
commit43f33c72804e63306580755049c09d5a81ad83e3 (patch)
tree805caeb00a832ed96a331907987d4e6a2056a391 /debian/sane-utils.postinst
parent0f86c5490ea7c2218a4394bf4c21bf3f9267a47c (diff)
parent6427d36e269d8c14e6bc55373102a4ebc971ca38 (diff)
Merge branch 'release/debian/1.1.1-1'debian/1.1.1-1
Diffstat (limited to 'debian/sane-utils.postinst')
-rw-r--r--debian/sane-utils.postinst7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
index 2d47e78..cde28cf 100644
--- a/debian/sane-utils.postinst
+++ b/debian/sane-utils.postinst
@@ -43,7 +43,7 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
# Create saned user/group if they do not exist
if ! getent passwd | grep -q "^saned:"; then
echo "Adding saned group and user..."
- adduser --home /var/lib/saned --quiet --system --no-create-home --group saned || true
+ adduser --home /var/lib/saned --quiet --system --group saned || true
fi
# Move home from /home/saned to /var/lib/saned (since 1.0.24-6)
@@ -61,6 +61,11 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
usermod -d /var/lib/saned saned
fi
fi
+
+ if [ ! -d /var/lib/saned saned ] ; then
+ usermod -d /var/lib/saned saned
+ fi
+
if [ "$SANED_IN_SCANNER" = "true" ]; then
adduser --quiet saned scanner
else