postinst is in rwhod 0.17-12.
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 | #!/bin/sh -e
# $Id: rwhod.postinst,v 1.2 1999/11/12 22:13:05 herbert Exp $
if ! id -u rwhod >/dev/null 2>&1; then
adduser --quiet --system --home /var/spool/rwho rwhod
fi
mkdir -p -m 755 /var/spool/rwho
chown -R rwhod /var/spool/rwho
# Automatically added by dh_installinit
if [ -x "/etc/init.d/rwhod" ]; then
update-rc.d rwhod defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d rwhod start || exit $?
else
/etc/init.d/rwhod start || exit $?
fi
fi
# End automatically added section
|