diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-03-19 19:03:00 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-03-19 19:03:00 +0100 |
commit | efdc09fc2f1f0ffa56c9be66b68dee0b038eb3f3 (patch) | |
tree | 52c0911f3bb74c10d3340a43168aeb01662a3fd0 | |
parent | 28fd7c9f5c872b65451a390be0489a3e03edccc8 (diff) |
sane-utils.postinst: Add addgroupdevelop
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/sane-utils.postinst | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index cd97d2a..3f26aa5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +sane-backends (1.3.1-3) UNRELEASED; urgency=medium + + * sane-utils.postinst: + - Add addgroup (Closes: #1100848, #1095956). + + -- Jörg Frings-Fürst <debian@jff.email> Wed, 19 Mar 2025 17:48:30 +0100 + sane-backends (1.3.1-2) unstable; urgency=medium * Fix FTBFS on non-Linux architectures (Closes: #1090801). diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst index b334d59..553cfce 100644 --- a/debian/sane-utils.postinst +++ b/debian/sane-utils.postinst @@ -41,6 +41,12 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then # Stop debconf; output to stdout after this point. update-inetd needs debconf. db_stop + # Add the scanner system group if it doesn't exist + if ! getent group | grep -q "^scanner:"; then + echo "Adding scanner group..." + addgroup --quiet --system scanner || true + fi + # Create saned user/group if they do not exist if ! getent passwd | grep -q "^saned:"; then echo "Adding saned group and user..." |