0 like 0 dislike
816 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 (180 points) | 816 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 7, 2015 in Education & Reference by Sam (1.3k points) | 851 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Dec 5, 2017 in Computers & Internet by sameer615 (80 points) | 68 views
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Oct 25, 2017 in Education & Reference by Krish (810 points) | 4.7k 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,200 questions
1,346 answers
432 comments
1,901 users