postinst is in trousers 0.3.11.2-1.
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 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/sh
set -e
case "${1}" in
configure)
# Adding tss system user
adduser --system --quiet --home /var/lib/tpm --shell /bin/false --no-create-home --group tss
# Setting owner
chown tss:tss /var/lib/tpm -R
chown tss:tss /etc/tcsd.conf
# Setting permissions
chmod 0600 /etc/tcsd.conf
chmod 0700 /var/lib/tpm
# ask udev to check for new udev rules (and fix device permissions)
if [ -x /etc/init.d/udev ] && pidof udevd > /dev/null; then
udevadm control --reload-rules
udevadm trigger --sysname-match="tpm[0-9]*"
fi
;;
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/trousers" ] || [ -e "/etc/init/trousers.conf" ]; then
if [ ! -e "/etc/init/trousers.conf" ]; then
update-rc.d trousers defaults >/dev/null
fi
invoke-rc.d trousers start || exit $?
fi
# End automatically added section
exit 0
|