From a5f07a68b49df3f83aba14c5aa261525cfe8f9e9 Mon Sep 17 00:00:00 2001 From: Patrick Gallagher Date: Thu, 21 Sep 2017 06:24:01 -0400 Subject: [PATCH] Updated README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated README to make OS agnostic, and moved $title down so it’s below where $7 is specified. --- README.md | 14 +++++++------- macOSUpgrade.sh | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6868d0c..a21b932 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# macOS Sierra Self Service Upgrade Process +# macOS Self Service Upgrade Process ###### Workflow for doing an in-place upgrade without user interaction. ___ -This script was designed to be used in a Self Service policy to ensure specific requirements have been met before proceeding with an inplace upgrade to macOS Sierra, as well as to address changes Apple has made to the ability to complete macOS upgrades silently. +This script was designed to be used in a Self Service policy to ensure specific requirements have been met before proceeding with an inplace upgrade to macOS, as well as to address changes Apple has made to the ability to complete macOS upgrades silently. Requirements: * Jamf Pro @@ -13,21 +13,21 @@ ___ **Why is this needed?** -Starting with macOS Sierra, Apple has begun enforcing the way in which you can silently call for the OS upgrade process to happen in the background. Because of this change, many common ways that have been used and worked in the past no longer do. This script was created to adhear to Apple's requirements of the startosinstall binary. +Starting with macOS Sierra, Apple has begun enforcing the way in which you can silently call for the OS upgrade process to happen in the background. Because of this change, many common ways that have been used and worked in the past no longer do. This script was created to adhere to Apple's requirements of the startosinstall binary. -This script has been tested on OS X 10.11.5 upgrading to macOS Sierra 10.12.5 and 10.126 without issue (as well as the latest High Sierra betas). If the machine is FileVault encrypted, it will complete the authenticated restart to the OS Installer and automatically perform the upgrade with no user interaction. Upon completion the machine will again reboot to the macOS Sierra Login Window. +This script has been tested on OS X 10.11.5 upgrading to macOS Sierra 10.12.5 and 10.12.6 without issue (as well as the latest High Sierra GM-RC1). If the machine is FileVault encrypted, it will complete the authenticated restart to the OS Installer and automatically perform the upgrade with no user interaction. Upon completion the machine will again reboot to the macOS Sierra Login Window. * Note: Authenticated login is broken with 10.12.4+. See https://github.com/kc9wwh/macOSUpgrade/issues/13 **Configuring the Script** -When you open the script you will find some user variables defined on lines 59-91. Here you can specify the message that is displayed to the end user while the script is running and preparing the computer to upgrade to macOS Sierra, as well as the varibles used to determine the version and path for the macOS Installer. Also, don't forget to setup a policy with a custom trigger specified as defined in the user variables. +When you open the script you will find some user variables defined on lines 59-91. Here you can specify the message that is displayed to the end user while the script is running and preparing the computer to upgrade to macOS Sierra, as well as the variables used to determine the version and path for the macOS Installer. Also, don't forget to setup a policy with a custom trigger specified as defined in the user variables. -**Staging macOS Sierra Installer** +**Staging the macOS Installer** -In order for this script to work, you will have to have a copy of the macOS Sierra Installer that is available from the Mac App Store located in /Applications. One of the easiest ways to achieve this is to package the installer with composer as seen below and deploy the package via Jamf Pro. +In order for this script to work, you will have to have a copy of the macOS Installer that is available from the Mac App Store located in /Applications. One of the easiest ways to achieve this is to package the installer with composer as seen below and deploy the package via Jamf Pro. ![alt text](/imgs/composer.png) diff --git a/macOSUpgrade.sh b/macOSUpgrade.sh index b74cf1a..08d394a 100644 --- a/macOSUpgrade.sh +++ b/macOSUpgrade.sh @@ -58,9 +58,6 @@ ##Enter 0 for Full Screen, 1 for Utility window (screenshots available on GitHub) userDialog=0 -##Title to be used for userDialog (only applies to Utility Window) -title="$7 Upgrade" - ##Heading to be used for userDialog heading="Please wait as we prepare your computer for $macOSname..." @@ -81,6 +78,9 @@ download_trigger="$6" #Example: macOS High Sierra macOSname="$7" +##Title to be used for userDialog (only applies to Utility Window) +title="$7 Upgrade" + ##Title to be used for userDialog description=" This process will take approximately 5-10 minutes.