Skip to main content
Solved

Adding basic logic to Notify Screen (script)?


Forum|alt.badge.img+7
  • Contributor
  • 26 replies

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!

Best answer by DBrowning

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

 

View original
Did this topic help you find an answer to your question?

7 replies

DBrowning
Forum|alt.badge.img+24
  • Esteemed Contributor
  • 668 replies
  • Answer
  • March 29, 2023

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

 


jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • 744 replies
  • March 29, 2023

zoomInstallerIT.pkg is listed as universal on Jamf Apps.. Apparency reports Apple Silicon / Intel 

 

 


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 26 replies
  • March 29, 2023
jamf-42 wrote:

zoomInstallerIT.pkg is listed as universal on Jamf Apps.. Apparency reports Apple Silicon / Intel 

 

 


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.


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 26 replies
  • March 29, 2023
DBrowning wrote:

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

 


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.


jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • 744 replies
  • March 29, 2023
Nate1 wrote:

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.


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' 

 


jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • 744 replies
  • March 29, 2023
Nate1 wrote:

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.


add set -x to debug add top after shebang 


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • July 20, 2023

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?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings