summaryrefslogtreecommitdiff
path: root/security/logcheck/files/pkg-deinstall.in
blob: b480a6600cee7c14a4f8144653291bc5b9d51909 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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