Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attemptToFetchMajorUpgrade is unused #278

Closed
tomkins opened this issue Oct 25, 2021 · 3 comments
Closed

attemptToFetchMajorUpgrade is unused #278

tomkins opened this issue Oct 25, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@tomkins
Copy link

tomkins commented Oct 25, 2021

Now that Monterey is a reality, I'm testing/tweaking configs, but one thing I can't seem to disable is major upgrades being downloaded automatically.

Sample config file:

{
  "osVersionRequirements": [
    {
      "aboutUpdateURL": "https://support.apple.com/en-us/HT211896",
      "requiredInstallationDate": "2021-09-24T00:00:00Z",
      "requiredMinimumOSVersion": "11.6",
      "targetedOSVersionsRule": "default"
    },
    {
      "aboutUpdateURL": "https://support.apple.com/en-us/HT201222",
      "requiredInstallationDate": "2021-10-27T00:00:00Z",
      "requiredMinimumOSVersion": "12.0.1",
      "targetedOSVersionsRule": "11"
    }
  ],
  "userExperience": {
    "allowUserQuitDeferrals": true,
    "allowedDeferrals": 20,
    "allowedDeferralsUntilForcedSecondaryQuitButton": 14,
    "initialRefreshCycle": 28800,
    "approachingRefreshCycle": 6000,
    "approachingWindowTime": 72,
    "imminentRefreshCycle": 600,
    "imminentWindowTime": 24,
    "elapsedRefreshCycle": 300,
    "maxRandomDelayInSeconds": 2,
    "randomDelay": true
  },
  "optionalFeatures": {
    "attemptToFetchMajorUpgrade": false
  }
}

(Yes, versioning looks a bit weird - I was just testing a few things!)

Yet, I'm seeing:

2021-10-25 23:33:09.431984+0100  localhost Nudge[69780]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true
2021-10-25 23:33:09.432130+0100  localhost Nudge[69780]: [com.github.macadmins.Nudge:softwareupdate-list] device requires major upgrade - attempting download

Regardless of true or false for attemptToFetchMajorUpgrade.

A quick look through the wiki/code suggests this is documented as an option, but I can't see it being actively used (unless I've missed something!).

@hiyer
Copy link

hiyer commented Oct 26, 2021

+1. I also see the same with this option set to true or false when the requiredMinimumOsVersion is set to 12.0.1 (currently running 11.6). Additionally, the Nudge UI doesn't pop up at all.

@dan-snelson
Copy link
Contributor

With attemptToFetchMajorUpgrade removed from the local JSON, "/Applications/Install macOS Monterey.app" still launches each time a user is nudged when prompting to upgrade to 12.0.1 from 11.

@erikng erikng added the bug Something isn't working label Nov 23, 2021
@erikng
Copy link
Member

erikng commented Nov 23, 2021

Should be fixed with https://github.com/macadmins/nudge/releases/tag/v1.1.3.11232021144641

If it's not please report back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants