I have a working process for osx updates. I'm using an extension attribute to verify if a computer has any updates, and if so if they require an update or not.
I then just the Jamf helper to create a nice dialogue with a countdown timer. And I fire off a:
softwareupdate -i -a -R --force
Which works well, but I have found in certain situations, like having a terminal open, cancelling to closing, cancels the reboot.
I also read doing something like:
softwareupdate -i -a && reboot
Should work... But my test systems just reboot and don't install updates this way. Only with the "-R"
Was just curious if anyone else had seen this or had a workaround.
