post_install()
{
	if ! grep -q '^logcheck:' /etc/group ; then
		groupadd -g 113 logcheck
	fi
	if ! grep -q '^logcheck:' /etc/passwd ; then
		useradd -u 113 -g 113 -s /bin/false -c "Logcheck" -d /var/lib/logcheck logcheck
	fi
}

pre_remove()
{
	userdel -r logcheck >/dev/null 2>&1
	groupdel logcheck >/dev/null 2>&1
	rm -fr /var/lib/logcheck 2>&1
}

op=$1
shift

$op $*
