mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
fixes to rkhunter and chkrootkit installation
This commit is contained in:
parent
b2d966f8e4
commit
81d96de21d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user