Bug 8910 - silent warnings triggered in about.pl
authorMark Tompsett <mtompset@hotmail.com>
Fri, 12 Oct 2012 06:29:59 +0000 (14:29 +0800)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 25 Oct 2012 12:40:36 +0000 (14:40 +0200)
In order to detect the apache version, there are multiple
commands used. These may not all exist, which triggers error log
entries. By simply adding " 2> /dev/null", the errors are no
longer generated.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

about.pl

index 3296182..3c641b3 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -55,8 +55,8 @@ if ($^O ne 'VMS') {
 }
 my $perlVersion   = $];
 my $mysqlVersion  = `mysql -V`;
-my $apacheVersion = `httpd -v`;
-$apacheVersion = `httpd2 -v` unless $apacheVersion;
+my $apacheVersion = `httpd -v 2> /dev/null`;
+$apacheVersion = `httpd2 -v 2> /dev/null` unless $apacheVersion;
 $apacheVersion = (`/usr/sbin/apache2 -V`)[0] unless $apacheVersion;
 my $zebraVersion = `zebraidx -V`;