Posted on 03-29-2023 09:33 AM
Is it possible to add some basic logic to the Jamf Notify script?
In my scenario, I'm using it as a first boot installation of a few basic apps and one of those is Zoom. Infamously Zoom doesn't have a universal installer so depending on the architecture it'll need one of two saved packages installed from Jamf Pro.
Is it possible to read the processor type in the script and add an if/else section to install the correct pkg? I had messed around with it some but it was failing and I wasn't sure why, but it was my first time testing with the Notify Screen so I wasn't sure what I was doing.
Thanks everyone!
Solved! Go to Solution.
Posted on 03-29-2023 09:49 AM
Yes you can. The notify script is just like any other script. something like this should work for you.
arch=$(/usr/bin/arch)
if [ "$arch" == "arm64" ]; then
#install AS version
else
#install Intel verison
fi
Posted on 03-29-2023 09:49 AM
Yes you can. The notify script is just like any other script. something like this should work for you.
arch=$(/usr/bin/arch)
if [ "$arch" == "arm64" ]; then
#install AS version
else
#install Intel verison
fi
Posted on 03-29-2023 12:11 PM
Excellent thank you!
Unfortunately adding a quick change to my script hangs at this logic step but I'm sure it's something Im doing wrong.
03-29-2023 12:28 PM - edited 03-29-2023 12:29 PM
add set -x to debug add top after shebang
03-29-2023 09:52 AM - edited 03-29-2023 09:56 AM
zoomInstallerIT.pkg is listed as universal on Jamf Apps.. Apparency reports Apple Silicon / Intel
Posted on 03-29-2023 12:06 PM
Interesting! I hadn't even thought to use the built-in Mac Apps within Jamf. If it's only for recently imaged machines, how do you handle smart groups? Ideally I was hoping to have the machines install the necessary apps before the user was even able to reach the desktop (hence the Notify Screen). But if it's only able to do it after the user is fully logged in, that will at least get it working.
03-29-2023 12:13 PM - edited 03-29-2023 12:14 PM
if you need Zoom for all devices.. create a smart group 'App ZoomIT' add 'all computers' and then add 'App ZoomIT' to Jamf Apps.. this will deploy Zoom and keep it updated.. move on to your next challenge.. Note that the default config profile pushed by Jamf Apps may interfere with your Zoom config profile.. so disable the jamf one and go with the zoom config profile..
why the sub group.. so you can always limit the deploy by just editing 'App ZoomIT'
Posted on 07-19-2023 11:49 PM
So I worked a couple of years back with DEPNotify and it was working great for our purpose.
Does it still work great? Would like to have it start after a user completes enrollment via Apple Business Manager into Jamf Pro.
I read some conflicting experiences if DEPNotify still works with the enrollment complete trigger used by Jamf Pro.
Anybody?