postinst is in stenographer-common 0.0~git20161206.0.66a8e7e-7.
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 | #!/bin/sh
set -e
CERTDIR=/etc/stenographer/certs
if [ "$1" = configure ]; then
if ! getent passwd stenographer >/dev/null; then
adduser \
--system --group --no-create-home --home /var/lib/stenographer \
stenographer
fi
if ! dpkg-statoverride --list $CERTDIR >/dev/null 2>&1; then
dpkg-statoverride \
--quiet --update \
--add stenographer stenographer 0750 $CERTDIR
fi
install -d -ostenographer -gstenographer -m750 /var/lib/stenographer
fi
stenokeys stenographer stenographer
|