0 like 0 dislike
861 views
in Education & Reference by (180 points)

Software error:

No version because no distro. at /opt/otrstwo/bin/cgi-bin/../../Kernel
/cpan-lib/Linux/Distribution.pm line 95.

1 Answer

1 like 0 dislike
by
selected by
 
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\))',
 );
 

 

Related questions

1 like 0 dislike
1 answer 1.5k views
0 like 0 dislike
1 answer 870 views
1 like 0 dislike
1 answer 892 views
2 like 0 dislike
2 answers 147 views
2 like 0 dislike
1 answer 288 views
1 like 0 dislike
1 answer 2.1k views
0 like 0 dislike
1 answer 93 views
asked Dec 5, 2017 in Computers & Internet by sameer615 (80 points)

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

...