I have a popup that is displayed after a Mac installs updates that require a restart. One of the buttons says Restart. I am using an apple script in a shell script to trigger the restart, but it does not work when it is run from the JSS as I believe it is running as root and not the current user. If you run the shell script locally it works fine. If you have it in the JSS and it is triggered from the JSS it does not work. This is the trigger I am using:
osascript -e 'tell application "System Events" to restart'
It is not working currently. Does anyone know of a way to restart from a JamfHelper window?
