the apache 2.2/2.4 compat layer was broken because of apachectl not behaving like...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 9 Apr 2019 13:34:49 +0000 (15:34 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 9 Apr 2019 13:34:49 +0000 (15:34 +0200)
plc.d/functions

index 161da9e..340e89d 100644 (file)
@@ -171,7 +171,9 @@ function plc_reload () {
 # </Directory>
 
 function apache_newauth () {
-    apache_version=$(apachectl -V 2> /dev/null | grep 'Server version' | cut -d ' ' -f3 | sed -e 's,^.*/,,')
+    # somehow in 2019 apachectl stopped answering the -V option
+    # apache_version=$(apachectl -V 2> /dev/null | grep 'Server version' | cut -d ' ' -f3 | sed -e 's,^.*/,,')
+    apache_version=$(rpm -q --queryformat "%{VERSION}" httpd)
     apache_major=$(echo $apache_version | cut -d. -f1)
     apache_minor=$(echo $apache_version | cut -d. -f2)
     test "$apache_minor" -ge 4