diff -Nur smeserver-rkhunter-1.4.0.old/root/etc/e-smith/templates/etc/cron.daily/rkhunter/10script smeserver-rkhunter-1.4.0/root/etc/e-smith/templates/etc/cron.daily/rkhunter/10script --- smeserver-rkhunter-1.4.0.old/root/etc/e-smith/templates/etc/cron.daily/rkhunter/10script 2015-08-13 10:07:14.000000000 -0400 +++ smeserver-rkhunter-1.4.0/root/etc/e-smith/templates/etc/cron.daily/rkhunter/10script 2017-07-06 18:02:46.609000000 -0400 @@ -33,7 +33,12 @@ if [ -x $RKHUNTER ]; then /bin/echo -e "\n--------------------- Start Rootkit Hunter Update ---------------------" \ > $TMPFILE1 - /bin/nice -n 10 $RKHUNTER --update --nocolors 2>&1 >> $TMPFILE1 + updatestatus=$(/sbin/e-smith/config getprop rkhunter updateMirrors) || echo 'disabled' + if [ "$updatestatus" == 'enabled' ]; then + /bin/nice -n 10 $RKHUNTER --update --nocolors 2>&1 >> $TMPFILE1 + else + echo "Rootkit Hunter Update disabled see https://bugs.contribs.org/show_bug.cgi?id=10376 " 2>&1 >> $TMPFILE1 + fi /bin/echo -e "\n---------------------- Start Rootkit Hunter Scan ----------------------" \ >> $TMPFILE1 /bin/nice -n 10 $RKHUNTER $RKHUNTER_FLAGS 2>&1 >> $TMPFILE1 diff -Nur smeserver-rkhunter-1.4.0.old/root/etc/e-smith/templates/etc/rkhunter.conf/005mirrors20update smeserver-rkhunter-1.4.0/root/etc/e-smith/templates/etc/rkhunter.conf/005mirrors20update --- smeserver-rkhunter-1.4.0.old/root/etc/e-smith/templates/etc/rkhunter.conf/005mirrors20update 2009-04-02 17:13:16.000000000 -0400 +++ smeserver-rkhunter-1.4.0/root/etc/e-smith/templates/etc/rkhunter.conf/005mirrors20update 2017-07-06 17:51:46.512000000 -0400 @@ -6,4 +6,7 @@ # If this option is set to 0, the mirrors file can only be updated # manually. This may be useful if only using local mirrors. # -UPDATE_MIRRORS=1 +{ + my $update= (($rkhunter{updateMirrors}|| 'disabled' ) eq 'enabled') ? 1 : 0; + $OUT = "UPDATE_MIRRORS= $update\n"; +}