Self Service Mojave Upgrade

monaronyc
Contributor

Hi Folks! Hoping someone can help. We're using Self Service to upgrade our workstations to Mojave using the kc9wwh/macOSUpgrade script, and all seems to be going as expected except for as soon as the workstation is ready to restart it gets stuck trying to quit out of Self Service:

a31020282f9c475d929d06cbabdc4cf2
We've noticed this to happen only on the Sierra machines so far. And if we hit cancel, quit out of Self Service manually and restart the workstation, the upgrade starts to install. Anyone know what might be causing Self Service to hang like this?

2 REPLIES 2

larry_barrett
Valued Contributor

You have to add a kill command for Self Service at the end of your script. It's on here somewhere.

jkaigler
Contributor II

Used to be adding & at the end of the command would work. Now I use this command:

selfService=$(pgrep "Self Service"); /Applications/Install macOS Mojave.app/Contents/Resources/startosinstall --eraseinstall --newvolumename "Macintosh HD" --agreetolicense --rebootdelay 5 --nointeraction --pidtosignal "$selfService"