25 lines
385 B
Bash
Executable File
25 lines
385 B
Bash
Executable File
#!/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
|
|
|
|
|
|
|