From efdc09fc2f1f0ffa56c9be66b68dee0b038eb3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 19 Mar 2025 19:03:00 +0100 Subject: sane-utils.postinst: Add addgroup --- debian/sane-utils.postinst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debian/sane-utils.postinst') 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..." -- cgit v1.2.3