Posted on 02-19-2020 05:40 AM
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:
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?
Posted on 02-19-2020 06:20 AM
You have to add a kill command for Self Service at the end of your script. It's on here somewhere.
Posted on 02-19-2020 06:48 AM
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"