Hey guys,
I am currently updating our device's browsers with a simple policy that downloads the latest version into the application folder and overwrites it.
It asks the user before doing so with the built-in deferral of Jamf.
After installing the latest version, I am using the following Force Quit script to make sure the browser quits and uses the latest configuration afterward:
pid=$(ps axo pid,command | grep "Google Chrome" | awk '{print $1}')
echo "Pid is: "$pid
if [ "$pid" ]
then
echo "Chrome is Running"
echo "Killing Chrome pid"
kill $pid
echo "Pid killed"
else
echo "Chrome not running"
fi
This seems to work for most users without problems, but some users are experiencing one of the following issues:
- You can't open the browser anymore (needs to be reinstalled)
- Chrome Add-Ons do not work anymore / data from them is deleted
Do you guys know what I can improve or have any alternatives to this method?
All users are running on Mojave or Catalina.