had rkhunter --propupd run before configs were changed. Fixed for #869, also added a crontab for RKHunter to automatically run daily at 4:15AM
This commit is contained in:
parent
e0b333843a
commit
933668f156
|
@ -121,6 +121,7 @@ apt_install python3 python3-dev python3-pip \
|
||||||
|
|
||||||
# Add Rootkit hunter
|
# Add Rootkit hunter
|
||||||
# I have it install and then update to install dependencies and such
|
# I have it install and then update to install dependencies and such
|
||||||
|
# It adds a crontab to check daily at 4:15AM
|
||||||
# Added by Alon "Chief Gyk" Ganon
|
# Added by Alon "Chief Gyk" Ganon
|
||||||
apt_install rkhunter binutils libreadline5 ruby ruby1.9.1 unhide.rb
|
apt_install rkhunter binutils libreadline5 ruby ruby1.9.1 unhide.rb
|
||||||
wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.2/rkhunter-1.4.2.tar.gz
|
wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.2/rkhunter-1.4.2.tar.gz
|
||||||
|
@ -132,6 +133,8 @@ rm -rf rkhunter*
|
||||||
cp conf/rkhunter/rkhunter.conf /etc/rkhunter.conf
|
cp conf/rkhunter/rkhunter.conf /etc/rkhunter.conf
|
||||||
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 --propupd
|
rkhunter --propupd
|
||||||
|
(crontab -l 2>/dev/null; echo "15 04 * * * /usr/bin/rkhunter --cronjob --update --quiet
|
||||||
|
")| crontab -
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue