Firefox Install Script - Update Question

ultrakev75
New Contributor II

Hi, I would like to modify the Firefox install script so that it will only update to the latest version on Macs that already have it installed. So where it runs a check for the currently installed version, if it doesn't find any it will leave it in that state and only update where it finds an older version that's out of date. Can anyone offer advice as to where I need to change the script? Thanks in advance.
https://www.jamf.com/jamf-nation/discussions/26076/mozilla-firefox-esr-update-script

3 REPLIES 3

jtrant
Valued Contributor

Patch Management might be a good way to achieve what you're looking for? It's a little bit of work to get it set up but quite effective.

You can target only machines with a certain version of Firefox to be updated to a newer version one you have packaged it and uploaded to Jamf Admin.

https://docs.jamf.com/10.4.0/jamf-pro/administrator-guide/About_Patch_Management.html

nwiseman
Contributor

I agree with @jtrant , but if you don't want to go that route, you could also create a smart group of systems that have Firefox installed and only scope the policy to it.

ultrakev75
New Contributor II

Hi, yes the patching side of things is currently what we have in place. What I'm hoping to achieve is a easy way to create a payload using the script and patch management so we don't have to package up a new version every time one becomes available. If we could just have a script that deploys to all our Macs and checks for the version of Firefox that's installed an updates where necessary. It may be too complex however as we want a single solution to be able to know if each Mac is running Quantum, ESR or the standard version of FF and I have only got individual scripts that deploy ESR and standard.