Hi all,
I've been running the macOSUpgrade.sh script successfully for a while now, but 11.6 is giving me some problems.
https://github.com/kc9wwh/macOSUpgrade/blob/master/macOSUpgrade.sh
We're in the process of updating some older machines (10.14 and 10.15) to 11.6. We run two separate polices, first to download the installer through Software Update, then another policy to run the macOSUpgrade.sh script. When I test the script on 11.6 installer, and this has happened to at least 3 machines now, the script will try to trigger downloading the installer and deleting the existing one that's already in /Applications/.
This is the log:
Script result: installerVersion 11.6
installerVersion_Full_Integer 110600 installerVersion_Major_Integer 1106 Killing caffeinate processes. No matching processes were found Killing startosinstall processes. No matching processes were found Killing osinstallersetupd processes. No matching processes were found Power Check: OK - AC Power Detected Disk Check: OK - 407 GB Free Space Detected Print: Entry, "Assets:0:OSVersion", Does Not Exist Installer check: Expected: 11.6 Actual: File Doesn't Exist, Will Create: /Volumes/Shared/com_apple_MobileAsset_MacSoftwareUpdate/com_apple_MobileAsset_MacSoftwareUpdate.xml Try to download installer.app. (1 / 3 ) Downloading macOS Installer... Checking for policies triggered by "recurring check-in" for user "loaner"... No policies were found for the "recurring check-in" trigger. Checking for patches... No patch policies were found. Installer check: Not found installer.app. Try to download installer.app. (2 / 3 ) Downloading macOS Installer... Checking for policies triggered by "recurring check-in" for user "loaner"... No policies were found for the "recurring check-in" trigger. Checking for patches... No patch policies were found. Installer check: Not found installer.app. Try to download installer.app. (3 / 3 ) Downloading macOS Installer... Checking for policies triggered by "recurring check-in" for user "loaner"... No policies were found for the "recurring check-in" trigger. Checking for patches... No patch policies were found. macOS Installer.app downloaded 3 Times. But installer check failed. 0
Apparently, the script can't see the installer for 11.6 so it's been deleting it. Are there any others running into this issue lately and have found a workaround?
Thanks for reading!