#!/bin/sh set -e case "${1}" in configure) addgroup --system pkcs11 adduser --system --ingroup pkcs11 --home /run/opencryptoki --no-create-home --shell /usr/sbin/nologin --comment "Opencryptoki pkcsslotd user" pkcsslotd usermod -a -G pkcs11 root chown root:pkcs11 /etc/opencryptoki/p11sak_defined_attrs.conf chown root:pkcs11 /etc/opencryptoki/strength.conf chmod 640 /etc/opencryptoki/strength.conf ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# exit 0