From f30628b14112d0213bf40cd4dd7e5ab77c39d4f6 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Sat, 5 Apr 2014 14:42:02 +0200 Subject: [PATCH] Fixed: FS#3359 - rkhunter running twice on Debian --- install/lib/installer_base.lib.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index e3a530b9a..2f7dbadd3 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -2104,6 +2104,13 @@ class installer_base { //* Remove Domain module as its functions are available in the client module now if(@is_dir('/usr/local/ispconfig/interface/web/domain')) exec('rm -rf /usr/local/ispconfig/interface/web/domain'); + + //* Disable rkhunter run and update in debian cronjob as ispconfig is running and updating rkhunter + if(is_file('/etc/default/rkhunter')) { + replaceLine('/etc/default/rkhunter', 'CRON_DAILY_RUN="yes"', 'CRON_DAILY_RUN="no"', 1, 0); + replaceLine('/etc/default/rkhunter', 'CRON_DB_UPDATE="yes"', 'CRON_DB_UPDATE="no"', 1, 0); + } + } -- GitLab