Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tommaso Perondi
ISPConfig 3
Commits
93fa580e
Commit
93fa580e
authored
Oct 05, 2017
by
Till Brehm
Browse files
Fixed CentOS 6 version detection code.
parent
9694d85d
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/lib/install.lib.php
View file @
93fa580e
...
@@ -307,7 +307,7 @@ function get_distname() {
...
@@ -307,7 +307,7 @@ function get_distname() {
$distid
=
'centos53'
;
$distid
=
'centos53'
;
$distbaseid
=
'fedora'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: CentOS 5 or compatible
\n
"
);
swriteln
(
"Operating System: CentOS 5 or compatible
\n
"
);
}
elseif
(
stristr
(
$content
,
'CentOS Linux release 6'
))
{
}
elseif
(
stristr
(
$content
,
'CentOS Linux release
6'
)
||
stristr
(
$content
,
'CentOS release
6'
))
{
$distname
=
'CentOS'
;
$distname
=
'CentOS'
;
$distver
=
'Unknown'
;
$distver
=
'Unknown'
;
$distid
=
'centos53'
;
$distid
=
'centos53'
;
...
...
server/lib/classes/monitor_tools.inc.php
View file @
93fa580e
...
@@ -278,7 +278,7 @@ class monitor_tools {
...
@@ -278,7 +278,7 @@ class monitor_tools {
$distver
=
'Unknown'
;
$distver
=
'Unknown'
;
$distid
=
'centos53'
;
$distid
=
'centos53'
;
$distbaseid
=
'fedora'
;
$distbaseid
=
'fedora'
;
}
elseif
(
stristr
(
$content
,
'CentOS Linux release 6'
))
{
}
elseif
(
stristr
(
$content
,
'CentOS Linux release
6'
)
||
stristr
(
$content
,
'CentOS release
6'
))
{
$distname
=
'CentOS'
;
$distname
=
'CentOS'
;
$distver
=
'Unknown'
;
$distver
=
'Unknown'
;
$distid
=
'centos53'
;
$distid
=
'centos53'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment