From 16548d39840c92d43a64ca08f63231156935c41c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 1 Mar 2016 10:12:29 -0300 Subject: [PATCH] Bug 15721: (QA followup) pick the most probable first Signed-off-by: Tomas Cohen Arazi Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- C4/Context.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Context.pm b/C4/Context.pm index 7a5416e2c4..2546509768 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -1056,9 +1056,9 @@ sub get_versions { { no warnings qw(exec); # suppress warnings if unable to find a program in $PATH $versions{mysqlVersion} = `mysql -V`; - $versions{apacheVersion} = `httpd -v`; + $versions{apacheVersion} = (`apache2ctl -v`)[0]; + $versions{apacheVersion} = `httpd -v` unless $versions{apacheVersion} ; $versions{apacheVersion} = `httpd2 -v` unless $versions{apacheVersion} ; - $versions{apacheVersion} = (`apache2ctl -v`)[0] unless $versions{apacheVersion} ; $versions{apacheVersion} = `apache2 -v` unless $versions{apacheVersion} ; $versions{apacheVersion} = `/usr/sbin/apache2 -v` unless $versions{apacheVersion} ; } -- 2.39.5