Skip to content

Instantly share code, notes, and snippets.

@AndrewWCarson
Created July 10, 2017 15:12
Show Gist options
  • Save AndrewWCarson/b6b4915d9506b3447a721af14218fc6c to your computer and use it in GitHub Desktop.
Save AndrewWCarson/b6b4915d9506b3447a721af14218fc6c to your computer and use it in GitHub Desktop.
Upgrade to macOS 10.12
/Library/Addigy/macmanage/MacManage.app/Contents/MacOS/MacManage action=notify title="Install MacOS Sierra" description="After clicking install your machine will reboot within 5-15mins." closeLabel="Later" acceptLabel="Install"
#BOOT_VOLUME=$(ls -al /Volumes/ | grep '\-> \/' | awk '{print $9}')
tar -zxvf macOS_Sierra.tar.gz -C /Applications/
chmod -R 755 "/Applications/Install macOS Sierra.app"
#"/Applications/Install macOS Sierra.app/Contents/Resources/startosinstall" --volume "/Volumes/${BOOT_VOLUME}" --applicationpath "/Applications/Install macOS.app" --agreetolicense
"/Applications/Install macOS Sierra.app/Contents/Resources/startosinstall" --applicationpath "/Applications/Install macOS Sierra.app" --agreetolicense --nointeraction
/Library/Addigy/macmanage/MacManage.app/Contents/MacOS/MacManage action=notify title="Restart to finish MacOS Sierra Install" description="Your administrator is attempting to reset your machine to upgrade to Sierra." closeLabel="Later" acceptLabel="Restart"
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment