postinst is in caml-crush-server 1.0.7-1build1.
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
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
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/caml-crush-server" ]; then
		update-rc.d caml-crush-server defaults >/dev/null
	fi
	if [ -x "/etc/init.d/caml-crush-server" ] || [ -e "/etc/init/caml-crush-server.conf" ]; then
		invoke-rc.d caml-crush-server start || exit $?
	fi
fi
# End automatically added section
exit 0
 |