Skip to content

Commit 93fa580

Browse files
author
Till Brehm
committed
Fixed CentOS 6 version detection code.
1 parent 9694d85 commit 93fa580

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/lib/install.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function get_distname() {
307307
$distid = 'centos53';
308308
$distbaseid = 'fedora';
309309
swriteln("Operating System: CentOS 5 or compatible\n");
310-
} elseif(stristr($content, 'CentOS Linux release 6')) {
310+
} elseif(stristr($content, 'CentOS Linux release 6') || stristr($content, 'CentOS release 6')) {
311311
$distname = 'CentOS';
312312
$distver = 'Unknown';
313313
$distid = 'centos53';

server/lib/classes/monitor_tools.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function get_distname() {
278278
$distver = 'Unknown';
279279
$distid = 'centos53';
280280
$distbaseid = 'fedora';
281-
} elseif(stristr($content, 'CentOS Linux release 6')) {
281+
} elseif(stristr($content, 'CentOS Linux release 6') || stristr($content, 'CentOS release 6')) {
282282
$distname = 'CentOS';
283283
$distver = 'Unknown';
284284
$distid = 'centos53';

0 commit comments

Comments
 (0)