Skip to content

Commit faec621

Browse files
author
Till Brehm
committed
Add code to recognize CentOS 7.3
1 parent 42781ad commit faec621

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

install/lib/install.lib.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,27 @@ function get_distname() {
304304
$distconfid = 'centos72';
305305
$distbaseid = 'fedora';
306306
swriteln("Operating System: CentOS 7.2\n");
307+
} elseif(stristr($content, 'CentOS Linux release 7.3')) {
308+
$distname = 'CentOS';
309+
$distver = 'Unknown';
310+
$distid = 'centos72';
311+
$distconfid = 'centos72';
312+
$distbaseid = 'fedora';
313+
swriteln("Operating System: CentOS 7.3\n");
314+
} elseif(stristr($content, 'CentOS Linux release 7.4')) {
315+
$distname = 'CentOS';
316+
$distver = 'Unknown';
317+
$distid = 'centos72';
318+
$distconfid = 'centos72';
319+
$distbaseid = 'fedora';
320+
swriteln("Operating System: CentOS 7.4\n");
321+
} elseif(stristr($content, 'CentOS Linux release 7.5')) {
322+
$distname = 'CentOS';
323+
$distver = 'Unknown';
324+
$distid = 'centos72';
325+
$distconfid = 'centos72';
326+
$distbaseid = 'fedora';
327+
swriteln("Operating System: CentOS 7.5\n");
307328
} elseif(stristr($content, 'CentOS Linux release 7')) {
308329
$distname = 'CentOS';
309330
$distver = 'Unknown';

server/lib/classes/monitor_tools.inc.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,27 @@ function get_distname() {
279279
$distid = 'centos70';
280280
$distconfid = 'centos72';
281281
$distbaseid = 'fedora';
282+
} elseif(stristr($content, 'CentOS Linux release 7.3')) {
283+
$distname = 'CentOS';
284+
$distver = 'Unknown';
285+
$distid = 'centos72';
286+
$distconfid = 'centos72';
287+
$distbaseid = 'fedora';
288+
swriteln("Operating System: CentOS 7.3\n");
289+
} elseif(stristr($content, 'CentOS Linux release 7.4')) {
290+
$distname = 'CentOS';
291+
$distver = 'Unknown';
292+
$distid = 'centos72';
293+
$distconfid = 'centos72';
294+
$distbaseid = 'fedora';
295+
swriteln("Operating System: CentOS 7.4\n");
296+
} elseif(stristr($content, 'CentOS Linux release 7.5')) {
297+
$distname = 'CentOS';
298+
$distver = 'Unknown';
299+
$distid = 'centos72';
300+
$distconfid = 'centos72';
301+
$distbaseid = 'fedora';
302+
swriteln("Operating System: CentOS 7.5\n");
282303
} elseif(stristr($content, 'CentOS Linux release 7')) {
283304
$distname = 'CentOS';
284305
$distver = 'Unknown';

0 commit comments

Comments
 (0)