Debian Codegraph @

debian/opencryptoki.postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 case "${1}" in
6 configure)
7 addgroup --system pkcs11
8 adduser --system --ingroup pkcs11 --home /run/opencryptoki --no-create-home --shell /usr/sbin/nologin --comment "Opencryptoki pkcsslotd user" pkcsslotd
9
10 usermod -a -G pkcs11 root
11
12 chown root:pkcs11 /etc/opencryptoki/p11sak_defined_attrs.conf
13 chown root:pkcs11 /etc/opencryptoki/strength.conf
14 chmod 640 /etc/opencryptoki/strength.conf
15
16 ;;
17
18 abort-upgrade|abort-remove|abort-deconfigure)
19
20 ;;
21
22 *)
23 echo "postinst called with unknown argument \`${1}'" >&2
24 exit 1
25 ;;
26 esac
27
28 #DEBHELPER#
29
30 exit 0