etc-config/cron.daily/logcheck.cron

13 lines
222 B
Plaintext
Raw Normal View History

2016-04-05 04:08:16 +03:00
#!/bin/bash
set -e
which logcheck &>/dev/null || exit 0
if [ ! -d /var/lock/logcheck ]; then
mkdir -p /var/lock/logcheck
fi
chown -R logcheck:logcheck /var/lock/logcheck
su -s /bin/bash -c /usr/sbin/logcheck logcheck