postinst is in prads 0.3.0-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 | #!/bin/sh
# Postinst script for prads.
# Stig Sandbeck Mathisen <ssm@debian.org>
set -e
set -u
setup_user() {
if ! getent passwd prads 2>&1 >/dev/null; then
adduser --quiet --system --no-create-home --group prads
fi
}
case ${1:-} in
configure)
setup_user
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/prads" ]; then
update-rc.d prads defaults >/dev/null
invoke-rc.d prads start || exit $?
fi
# End automatically added section
|