Skip to content

Commit f6553cd

Browse files
committed
added CentOS 8 detection to installer
1 parent 1abf952 commit f6553cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install/lib/install.lib.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,15 @@ function get_distname() {
341341
$distid = 'centos72';
342342
}
343343
swriteln("Operating System: CentOS $var\n");
344+
} elseif(stristr($content, 'CentOS Linux release 8')) {
345+
$distname = 'CentOS';
346+
$distver = 'Unknown';
347+
$distbaseid = 'fedora';
348+
$distid = 'centos80';
349+
$var=explode(" ", $content);
350+
$var=explode(".", $var[3]);
351+
$var=$var[0].".".$var[1];
352+
swriteln("Operating System: CentOS $var\n");
344353
} else {
345354
$distname = 'Redhat';
346355
$distver = 'Unknown';

0 commit comments

Comments
 (0)