macOSUpgrade.sh

sebastian_santo
New Contributor III

Hello I need some help whenever I try to run the macOSUpgrade.sh via jamf policy I get the following output in the jamf log can someone help me

Executing Policy macOS Upgrade
[STEP 2 of 5]
Running script macOSUpgrade.sh...
Script exit code: 0
Script result: Killing caffeinate processes.
No matching processes were found
Killing startosinstall processes.
No matching processes were found
Killing osinstallersetupd processes.
No matching processes were found
Power Check: OK - AC Power Detected
Disk Check: OK - 479134027776 Bytes Free Space Detected
Downloading macOS Installer...
Checking for policies triggered by "Install macOS Catalina" for user "jamftest"...
No policies were found for the "Install macOS Catalina" trigger.
Downloading macOS Installer...
Checking for policies triggered by "Install macOS Catalina" for user "jamftest"...
No policies were found for the "Install macOS Catalina" trigger.
Downloading macOS Installer...
Checking for policies triggered by "Install macOS Catalina" for user "jamftest"...
No policies were found for the "Install macOS Catalina" trigger.
macOS Installer Downloaded 3 Times - Checksum is Not Valid
Prompting user for error and exiting...
0
[STEP 3 of 5]
[STEP 4 of 5]
Inventory will be updated when all queued actions in Self Service are complete.
[STEP 5 of 5]

7 REPLIES 7

dan-snelson
Valued Contributor II

@sebastian.santos Have you had a chance to review @Rosko's macOSUpgrade ?

sebastian_santo
New Contributor III

Yes sir I did and I edit whatever I have to I think

sebastian_santo
New Contributor III

@dan-snelson yes sir I think I did

Simmo
Contributor II
Contributor II

Your issue is here: No policies were found for the "Install macOS Catalina" trigger.

You need a policy enabled that the device is within the scope for with a custom trigger enabled, you should also not include spaces in a custom trigger. Update your policy with the upgrade script in it to include the new custom trigger.
Attached screenshot is an example of correct configuration for a macOSUpgrade macOS installer policy
0ce6c053476744069f7faab8269d18b5

sebastian_santo
New Contributor III

@Simmo thank you I will try it and will let you know

sebastian_santo
New Contributor III

@Simmo I have the issue resolved by changing the order of my policy macOSUpgrade first and then InstallmacOSCatalina its right next to the other it it worked like a charm thank you so much for your help

Musicmaker
Contributor

As @Simmo mentioned in his screendump: You should set the frequency at "Ongoing". You can see that it downloads the first time and after that 'no policies were found'. I had the same issue until I saw the frequency was set to Once per computer.