kc9wwh / macOSUpgrade

Workflow for doing in-place upgrades.
Other
418 stars 102 forks source link

adapting script for macOS 10.12.4 #11

Closed bdelamarche closed 7 years ago

bdelamarche commented 7 years ago

Hi,

It's working with the scripts thanks to Laurent Pertois for sharing an thanks to Joshua Roskos for this. We just adapt a little bit the script for 10.12.4 because some option are no more present in the .app installer

Line 79 to 86

Check if installer is present

if [ -d /Users/Shared/Install\ macOS\ Sierra.app ]; then installerPresent="OK" /bin/echo "Installer present: OK - the installer is in /Users/Shared" else installerPresent="ERROR" /bin/echo "Installer present: ERROR - the installer is not in /Users/Shared" fi

Line 118 /bin/mkdir -p /usr/local/jamfps

Line 164 if [[ ${pwrStatus} == "OK" ]] && [[ ${spaceStatus} == "OK" ]] && [[ ${installerPresent} == "OK" ]]; then

Line 179 /Users/Shared/Install\ macOS\ Sierra.app/Contents/Resources/startosinstall --applicationpath /Users/Shared/Install\ macOS\ Sierra.app --agreetolicense --pidtosignal $jamfHelperPID &

On our side all is working with this workflow

bdelamarche commented 7 years ago

[ALL]_installer_macos_sierra_10.12.4.sh.zip