[Logcheck-devel] Re: [Logcheck-commits] CVS logcheck/debian
maximilian attems
debian at sternwelten.at
Sat Jan 8 09:20:13 UTC 2005
On Fri, 07 Jan 2005, CVS User ttroxell wrote:
> @@ -29,16 +29,21 @@
> configure)
> # Add logcheck user
> # check for logcheck user or bad version without home
> + # touch cron job on updating accounts to fix #284788
> if ! getent passwd logcheck > /dev/null; then
> adduser --quiet --system --no-create-home --group \
> --home /var/lib/logcheck logcheck || true
> + touch /etc/cron.d/logcheck || true
> elif dpkg --compare-versions "$2" eq 1.2.19; then
> usermod -d /var/lib/logcheck logcheck > /dev/null 2>&1 || true
> + touch /etc/cron.d/logcheck || true
> fi
> # check for logcheck in adm group
> if ! getent group adm | grep logcheck > /dev/null; then
> adduser --quiet logcheck adm || true
> + touch /etc/cron.d/logcheck || true
> fi
> +
/me thinks only the first touch is needed,
as soon logcheck user exists, cron can't complain.
i agreee that atm logcheck is not yet fully operable,
but that's no a big concern, as permissions have yet to be set and so on..
on a slow machine we may risk to restart cron 3x with aboves ;-)
anyway good place to conditionalise
regards
--
maks
More information about the Logcheck-devel
mailing list