Lewis
Lewis
The only problem I've found with this solution and our testing of API calls is determining when the clean_up function should be called prior to the automated restart via APNS...........
@mpanighetti Where would you suggest adding that into the code? Happy to test this for you as my pending update which was deferred has disappared again Tue Nov 23 17:09:20...
Its either the softwareupdate LD needs a kick or for some odd reason I'm breaking out early of the IF statement on line 534 ``` # Get the "deferred until"...
Sorry, only just gotten around to this. I've added the kickstart section and testing now. Should know by Monday if the kickstart works or not
@mpanighetti That hasn't worked :( # Checks for recommended macOS updates, or exits if no such updates are # available. check_for_updates () { launchctl kickstart -k system/com.apple.softwareupdated sleep 120 UPDATE_CHECK=$(/usr/sbin/softwareupdate...
OK, if you can think of anything else to try I'm happy to give it ago
Happened again, seems a bit silly but would a second check_updates be worthwhile until we can ID the correct fix? Logic: If currently deferred & check_Updates returns no updates try...
So queried the install.log, found this snippet so the softwareupdated process genuinely could not find an update 2022-01-28 16:45:18+00 X2102825 softwareupdated[588]: Refreshing available updates from scan 2022-01-28 16:45:18+00 X2102825 SoftwareUpdateNotificationManager[1209]:...
So I tried increasing the sleep 60 to 5 mins inside the kickstart just to ensure everything was running before the softwareupdate --list from the check_updates function but even that...
This attempt was fresh, no deferment period