From 3cdb9a8fdc13ceb9de7a32b6fd989b76bafb45af Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 08 Jun 2011 04:58:27 -0400
Subject: [PATCH] Fixed: FS#1642 - Adding new content filters breaks header_checks, body_checks etc.

---
 install/lib/install.lib.php |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php
index 997f9a1..4ef2d37 100644
--- a/install/lib/install.lib.php
+++ b/install/lib/install.lib.php
@@ -57,7 +57,7 @@
 
 //** Get distribution identifier
 //** IMPORTANT!
-//   This is the same code as in server/mods-available/monitor_core_module.inc.php
+//   This is the same code as in server/lib/classes/monitor_tools.inc.php
 //   So if you change it here, you also have to change it in there!
 function get_distname() {
 	
@@ -161,6 +161,12 @@
 			$distid = 'centos53';
 			$distbaseid = 'fedora';
 			swriteln("Operating System: CentOS 5.3 or compatible\n");
+		} elseif(stristr($content,'CentOS release 5')) {
+			$distname = 'CentOS';
+			$distver = 'Unknown';
+			$distid = 'centos53';
+			$distbaseid = 'fedora';
+			swriteln("Operating System: CentOS 5 or compatible\n");
 		} else {
 			$distname = 'Redhat';
 			$distver = 'Unknown';

--
Gitblit v1.9.1