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
lolo888
ISPConfig 3
Commits
f02be967
Commit
f02be967
authored
Sep 22, 2014
by
Till Brehm
Browse files
Fixed a error in OS detection code for CentOS.
parent
0478d4a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/monitor_tools.inc.php
View file @
f02be967
...
...
@@ -215,13 +215,11 @@ class monitor_tools {
$distver
=
'Unknown'
;
$distid
=
'centos53'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: CentOS 6 or compatible
\n
"
);
}
elseif
(
stristr
(
$content
,
'CentOS Linux release 7'
))
{
$distname
=
'CentOS'
;
$distver
=
'Unknown'
;
$distid
=
'centos53'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: CentOS 7 or compatible
\n
"
);
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
...
...
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