Hey All,
I have been tasked with creating a smart group to see if an application is installed. The security application is FireEye. FireEye does have an application but it doesnt show in the applications as it is not suppose to. So I was going to create an extension attribute that will check the machine and see if it has the correct FireEye directory which should be /Library/FireEye/xagt/xagt.app . When doing so it does not pick up any machines. This is what I have so far:
!/bin/bash
############################################################
A script to collect information on if FireEye is currently installed
If FireEye is not installed then "Not Installed" will return back
############################################################
RE$ULT="Not Installed"
if [ -f "/Library/FireEye/xagt" ] ;
then
RE$ULT=$( /bin/defaults read "/Library/FireEye/xagt/xagt.app/Contents/info.plist" CFBundleName)
fi
echo "<result>$RE$ULT</result>"