I am trying to identify the Apache2 version to scope systems that need an update, but I am experiencing some unexpected results. My EA script:
#!/bin/sh
result=`httpd -v | grep "Unix" | awk '{print $3}' | cut -f2 -d"/"`
echo "<result>$result</result>"
When I run as root on my test system, the result is what I expect to see:
<result>2.4.46</result>
But the EA result in JAMF pro is 2.4.41.
A few details that may help: 2.4.41 is the version that ships with 10.15. I am leveraging MacPorts for the Apache2 update to 2.4.46.
Any ideas are appreciated :)