diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-02-07 06:56:10 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-02-07 06:56:10 +0100 |
commit | 43f33c72804e63306580755049c09d5a81ad83e3 (patch) | |
tree | 805caeb00a832ed96a331907987d4e6a2056a391 /debian/sane-utils.postinst | |
parent | 0f86c5490ea7c2218a4394bf4c21bf3f9267a47c (diff) | |
parent | 6427d36e269d8c14e6bc55373102a4ebc971ca38 (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.postinst | 7 |
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 |