freebsd-ports/security/logcheck/files/pkg-deinstall.in
Kurt Jaeger 70cbfe3880 security/logcheck: fix bugs of logcheck-test and its man page
PR:		221925
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org> (maintainer)
2017-09-12 05:44:36 +00:00

12 lines
226 B
Bash

#!/bin/sh
user="%%LOGCHECK_USER%%"
case $2 in
POST-DEINSTALL)
if /usr/bin/crontab -u "${user}" -l > /dev/null 2>&1; then
echo y | /usr/bin/crontab -u "${user}" -r
echo "==> Removed crontab for \"${user}\"."
fi
;;
esac