This file is indexed.

postinst is in caml-crush-server 1.0.8-1ubuntu2.

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
#!/bin/sh
set -e

setup_pkcs11proxyd_user() {
        if ! getent passwd Debian-pkcs11proxyd >/dev/null; then
                adduser --system --group --quiet --home /var/lib/pkcs11proxyd \
                        --force-badname Debian-pkcs11proxyd
        fi
}

fix_permissions() {
        chown -R root:Debian-pkcs11proxyd /etc/pkcs11proxyd
        chmod 640 /etc/pkcs11proxyd/filter.conf
        chmod 640 /etc/pkcs11proxyd/pkcs11proxyd.conf
}

if [ "$1" = configure ]; then
	setup_pkcs11proxyd_user
	fix_permissions
fi

# Automatically added by dh_installinit/11.1.4ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -x "/etc/init.d/caml-crush-server" ]; then
		update-rc.d caml-crush-server defaults >/dev/null
		invoke-rc.d caml-crush-server start || exit 1
	fi
fi
# End automatically added section


exit 0