postrm is in corekeeper 1.6.
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 | #!/bin/sh
set -e
# Delete leftover core files when removing/purging
[ $1 != purge -a $1 != remove ] || [ ! -d /var/crash ] || find /var/crash -name '*.core' -delete
[ $1 != purge -a $1 != remove ] || [ ! -d /var/cache/corekeeper ] || find /var/cache/corekeeper -type f -delete
# Turn off core dumps after remove/purge
# Only after purge will they be fully turned off
if [ $1 = purge -o $1 = remove ] ; then
if [ -x /bin/systemctl -a -d /run/systemd/system/ ] ; then
systemctl restart systemd-sysctl.service
elif [ -x /etc/init.d/procps ] ; then
invoke-rc.d procps reload
elif [ -x /lib/freebsd/sysctl ] ; then
/lib/freebsd/sysctl kern.sugid_coredump=0
/lib/freebsd/sysctl kern.corefile=%N.core
fi
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/corekeeper 1.1~ corekeeper -- "$@"
# End automatically added section
|