From 2ea1114b4bd294ae0a60985945956507ec25d430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 27 Apr 2019 09:13:33 +0200 Subject: Merge release 1.0.27.3.2 into source tree --- debian/libsane.postinst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 debian/libsane.postinst (limited to 'debian/libsane.postinst') diff --git a/debian/libsane.postinst b/debian/libsane.postinst new file mode 100644 index 0000000..971103e --- /dev/null +++ b/debian/libsane.postinst @@ -0,0 +1,24 @@ +#!/bin/sh +set -e + +case "$1" in + configure) + # 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 + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "$0 called with unknown argument '$1'" >&2 + exit 1 + ;; +esac + + +#DEBHELPER# -- cgit v1.2.3