diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-03-03 06:17:42 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-03-03 06:17:42 +0100 |
commit | fea823f105a8fa27d8f18dc090b67c6bdc935920 (patch) | |
tree | 2c406946d99c418b242dab88aed8718ec4885f81 /debian/itzks-systems-smartboard.postinst | |
parent | b7541d4b9b5584c72040f5ea04348ec5eddf986d (diff) | |
download | itzks-systems-fea823f105a8fa27d8f18dc090b67c6bdc935920.tar.gz itzks-systems-fea823f105a8fa27d8f18dc090b67c6bdc935920.tar.bz2 itzks-systems-fea823f105a8fa27d8f18dc090b67c6bdc935920.zip |
itzks-systems-smartboard: Provide itzks-smartboard system group so that we are able to grant smartboard access to local users without having to put them into the sudo group.
Diffstat (limited to 'debian/itzks-systems-smartboard.postinst')
-rwxr-xr-x | debian/itzks-systems-smartboard.postinst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/itzks-systems-smartboard.postinst b/debian/itzks-systems-smartboard.postinst index 1a7686d..e49f1d1 100755 --- a/debian/itzks-systems-smartboard.postinst +++ b/debian/itzks-systems-smartboard.postinst @@ -140,13 +140,21 @@ case "$1" in update-mime-database /usr/share/mime fi + + # setup itzks-smartboard group + if ! getent group itzks-smartboard 1>/dev/null 2>/dev/null; then + echo "Creating itzks-smartboard group." 1>&2 + addgroup --system itzks-smartboard + else + echo "Group itzks-smartboard already exists." 1>&2 + fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) - echo "postinst called with unknown argument \`$1'" >&2 + echo "postinst called with unknown argument \`$1'" 1>&2 exit 1 ;; esac |