From 519fef288e1ada862767338a7131751a1be53d93 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Sat, 8 May 2021 23:37:10 +0200 Subject: [PATCH] reduce rkhunter logging --- setup/additionals.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/additionals.sh b/setup/additionals.sh index 11112a71..15a0ed9b 100644 --- a/setup/additionals.sh +++ b/setup/additionals.sh @@ -26,12 +26,16 @@ cat > /root/.forward << EOF; administrator@$PRIMARY_HOSTNAME EOF +# Adapt rkhunter cron job to reduce log file production +sed -i "s/--cronjob --report-warnings-only --appendlog/--cronjob --report-warnings-only --no-verbose-logging --appendlog/g" /etc/cron.daily/rkhunter + # Install fake mail script if [ ! -f /usr/local/bin/mail ]; then hide_output install -m 755 tools/fake_mail /usr/local/bin mv -f /usr/local/bin/fake_mail /usr/local/bin/mail fi +# Adapt rkhunter configuration tools/editconf.py /etc/rkhunter.conf \ UPDATE_MIRRORS=1 \ MIRRORS_MODE=0 \