opnsense-ports/security/logcheck/files/pkg-deinstall.in
Franco Fichtner 41df77eed1 */*: sync with upstream
Taken from: HardenedBSD
2017-09-11 16:29:10 +02: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