Skip to content

Adding initial managed config file support#24

Merged
Mac-Nerd merged 1 commit intoMac-Nerd:1.1from
ci7rix:managedconfig
May 16, 2024
Merged

Adding initial managed config file support#24
Mac-Nerd merged 1 commit intoMac-Nerd:1.1from
ci7rix:managedconfig

Conversation

@ci7rix
Copy link
Contributor

@ci7rix ci7rix commented Apr 9, 2024

As discussed here : https://macadmins.slack.com/archives/C04V0BC98PQ/p1712157866087659
I added initial support for managed config files to my fork of Patchomator. The parameter that can be managed are "IgnoredLabels" and "RequiredLabels".

  1. For now, the easiest way to create a config profile is by using the command :
    defaults write /path/to/patchomator.plist IgnoredLabels/RequiredLabels -array label1 label2 label3
  2. And convert this plist file to a profile with https://github.com/scriptingosx/swift-prefs/.
  3. It can then be deployed by any MDM that support custom profiles.

I also wrote a Profile manifest for ProfileCreator and iMazing Profile Editor to create this config profile. I'll create a pull request for it if you want to merge this pull request.

If a configfile already exists, nothing will change, it will always be loaded first. I also added a way to prevent the managedConfigfile to be overwritten, as this is not desired with a profile.

@Mac-Nerd Mac-Nerd merged commit 4606d4d into Mac-Nerd:1.1 May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants