Hi JamfNation.
I am upgrading macOSX to Mojave from Self Service click with 2 consecutive policies,But somehow the os is upgrading to Mojave fine but i am not getting any logs. all the targets are showing as 'pending'.
Here are the policy details:
~Policy 1: criteria check
scope: Selected macs
execution: ongoing (Self service)
maintenance: inventory
script: added (before)
this scripts few prerequisite checks like, Diskspace check, battery%, Ac power, Dependant Apps etc.
If all the criteria matches then it will trigger the next policy
sudo jamf policy -trigger <next policy>
in case the criteria doesnt match, it will pop a message like,
"try again with AC power cable attached" or
"your battery is too low for OSX upgrade" etc.
~Policy 2: install OSX
scope: All mac
execution: custom trigger
Package: OSX installer
Restart: if package require with 2 min delay
maintenance: inventory
script: added (after)
#!/bin/sh
osascript -e 'display notification "Please keep your mac idle for some time" with title "Greetings from IT" subtitle "Your OS is installing..."'
sudo killall "Self Service"
sudo /Applications/Install macOS Mojave.app/Contents/Resources/startosinstall --agreetolicense
sudo systemsetup -setcomputersleep 60
sudo systemsetup -setdisplaysleep 60
sudo rm -rf /Applications/Install macOS Mojave.app
exit 0 ## Success
exit 1 ## Failure
Now, i have tried with 2 macs they are upgrading fine to OSX 10.14.6 (jamf also showing this osx version)
But for both the policies the targets are showing as 'pending'
Is there a better way to follow, i would like to know if i am missing something.
cheers!!
