File: //var/lib/dpkg/info/acct.postinst
#!/bin/sh
set -e
case "$1" in
configure)
mkdir -p /var/log/account
touch /var/log/account/pacct
chmod 0640 /var/log/account/pacct*
chown root:adm /var/log/account/pacct*
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
;;
esac
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/acct" ]; then
update-rc.d acct defaults >/dev/null
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
invoke-rc.d acct $_dh_action || exit $?
fi
fi
# End automatically added section
exit 0