Claim your Biolink Click Here
0 like 0 dislike
1.0k views

Software error:

No version because no distro. at /opt/otrstwo/bin/cgi-bin/../../Kernel
/cpan-lib/Linux/Distribution.pm line 95.
in Education & Reference by (100 points) | 1.0k views

1 Answer

1 like 0 dislike
Best answer

In /opt/otrs/Kernel/cpan-lib/Linux/Distribution.pm

Just remove the RED LINE

and

ADD the GREEN LINE

 
@@ -18,6 +18,7 @@ our $standard_release_file = 'lsb-release';
 our %release_files = (
     'gentoo-release'        => 'gentoo',
     'fedora-release'        => 'fedora',
+    'centos-release'        => 'centos',
     'turbolinux-release'    => 'turbolinux',
     'mandrake-release'      => 'mandrake',
     'mandrakelinux-release' => 'mandrakelinux',
@@ -52,7 +53,7 @@ our %version_match = (
     'redhat'                => 'Red Hat Linux release (.*) \(',
     'slackware'             => '^Slackware (.+)$',
     'pardus'                => '^Pardus (.+)$',
-    'centos'                => '^CentOS release (.+)(?:\s\(Final\))',
+    'centos'                => '^CentOS(?: Linux)? release (.+)(?:\s\(Final\))',
 );
 

 

by
selected by

Related questions

1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Oct 8, 2015 in Education & Reference by Sam (1.6k points) | 1.2k views
2 like 0 dislike
1 answer
2 like 0 dislike
2 answers
asked May 30, 2020 in Education & Reference by john (80 points) | 561 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Dec 5, 2017 in Computers & Internet by sameer615 (0 points) | 363 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,310 questions
1,471 answers
569 comments
4,809 users