This file is indexed.

postinst is in opencryptoki 2.3.1+dfsg-3ubuntu5.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

set -e

case "${1}" in
	configure)
		addgroup --system pkcs11
		adduser root pkcs11

		chown root:pkcs11 /var/lib/opencryptoki
		chmod 0775 /var/lib/opencryptoki
		;;

	abort-upgrade|abort-remove|abort-deconfigure)

		;;

	*)
		echo "postinst called with unknown argument \`${1}'" >&2
		exit 1
		;;
esac

# Automatically added by dh_installinit
if [ -x "/etc/init.d/opencryptoki" ]; then
	if [ ! -e "/etc/init/opencryptoki.conf" ]; then
		update-rc.d opencryptoki defaults >/dev/null
	fi
	invoke-rc.d opencryptoki start || exit $?
fi
# End automatically added section


exit 0