postinst is in dsc-statistics-collector 201106061022-4.
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 | #!/bin/bash -e
# postinst
USERNAME="Debian-dsc-statistics"
[ -n "$DSCDEBUG" ] && set -x
# Add user
if [ "$1" = "configure" ]; then
echo >&2 'Adding system user'
adduser --system --group --home /home/$USERNAME \
--disabled-password --force-badname --shell /bin/bash $USERNAME
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/dsc-statistics-collector" ]; then
update-rc.d dsc-statistics-collector defaults >/dev/null
invoke-rc.d dsc-statistics-collector start || exit $?
fi
# End automatically added section
|