fixes to rkhunter and chkrootkit installation

This commit is contained in:
KiekerJan 2021-04-30 22:15:06 +02:00
parent b2d966f8e4
commit 81d96de21d
1 changed files with 8 additions and 3 deletions

View File

@ -36,17 +36,22 @@ tools/editconf.py /etc/rkhunter.conf \
UPDATE_MIRRORS=1 \
MIRRORS_MODE=0 \
WEB_CMD='""' \
MAIL-ON-WARNING=root \
ALLOWHIDDENDIR=/etc/.java
if ! grep -Fxq "SCRIPTWHITELIST=/usr/local/bin/mail" /etc/rkhunter.conf > /dev/null; then
echo "SCRIPTWHITELIST=/usr/local/bin/mail" >> /etc/rkhunter.conf
fi
tools/editconf.py /etc/default/rkhunter \
CRON_DAILY_RUN='"true"' \
CRON_DB_UPDATE='"true"' \
APT_AUTOGEN='"true"'
tools/editconf.py /etc/chkrootkit.conf \
RUN_DAILY='"true"'
RUN_DAILY='"true"' \
DIFF_MODE='"true"'
# Should be last
# Should be last, update expected output
rkhunter --propupd
chkrootkit -q > /var/log/chkrootkit/log.expected