High Sierra upgrade successful, yet returning "Failed" in Jamf console

raphhyyy
New Contributor III

I have some issues going on regarding this script thats pushing out our High Sierra OS upgrades via Self Service. The OS updates perfectly fine on the user side. No issues reported during our testing pushout, but it shows up as "failed" in the policy logs.

!/bin/bash

/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall --applicationpath "/Applications/Install macOS High Sierra.app" --volume $1 --rebootdelay 1 --nointeraction

killall "Self Service"

a749e20aecb94c8eaea8190877d47c5c

Any suggestions on why this is happening?

2 REPLIES 2

dgreening
Valued Contributor II

From the Jamf supplied OS upgrade script:

##Begin Upgrade
    /bin/echo "Launching startosinstall..."
    "$OSInstaller/Contents/Resources/startosinstall" --applicationpath "$OSInstaller" --nointeraction --agreetolicense --pidtosignal $jamfHelperPID &
    /bin/sleep 3

It seems that you are missing the "--agreetolicense". Also, for Self Service to exit gracefully, you need to send the "--pidtosignal" command.

strider_knh
Contributor II

The failure can be because you are killing Self Service and so a completion result is not being sent to Jamf.