added line for rkhunter to first update when installed.

This commit is contained in:
ChiefGyk 2016-06-27 04:32:06 -04:00
parent b76c9330c5
commit 7f89d7cb82
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ cd ..
rm -rf rkhunter* rm -rf rkhunter*
cp conf/rkhunter/rkhunter.conf /etc/rkhunter.conf.local cp conf/rkhunter/rkhunter.conf /etc/rkhunter.conf.local
sed -i '/APT_AUTOGEN="false"/c\APT_AUTOGEN="yes"' /etc/default/rkhunter sed -i '/APT_AUTOGEN="false"/c\APT_AUTOGEN="yes"' /etc/default/rkhunter
rkhunter --update
rkhunter --propupd rkhunter --propupd
(crontab -l 2>/dev/null; echo "15 04 * * * /usr/bin/rkhunter --cronjob --update --quiet (crontab -l 2>/dev/null; echo "15 04 * * * /usr/bin/rkhunter --cronjob --update --quiet
")| crontab - ")| crontab -