From: Michael Kaply Date: Mon, 10 Dec 2018 21:54:36 +0000 (-0600) Subject: Inital checkin of Mac policy support X-Git-Tag: v1.4~5^2 X-Git-Url: https://git.p6c8.net/policy-templates.git/commitdiff_plain/8bcd47716d936b00398da491f9c5f822e1766bcf?ds=inline;hp=--cc Inital checkin of Mac policy support --- 8bcd47716d936b00398da491f9c5f822e1766bcf diff --git a/mac/README.md b/mac/README.md new file mode 100644 index 0000000..5b575da --- /dev/null +++ b/mac/README.md @@ -0,0 +1,36 @@ +**IMPORTANT**: These files are in active development along with the policies in Firefox. To get the policy information that corresponds to a specific release, go to https://github.com/mozilla/policy-templates/releases. + +Starting with Firefox 64 and Firefox ESR 60.4, Firefox supports configuration files on macOS. + +An example plist file with all options is available here: + +https://github.com/mozilla/policy-templates/blob/master/mac/org.mozilla.firefox.plist + +If you want to set specific options from the command line, we also provide flattened shortcuts to any item that is nested in the plist file. + +For example, this policy: +``` +{ + "policies": { + "Homepage": { + "URL": "http://example.com/" + } + } +} +``` +which would be set in the plist file like this: +``` + Homepage + + URL + http://example.com + +``` +can be set via the command line like this: +``` +defaults write org.mozilla.firefox Homepage__URL -string "http://example.com" +``` +Before any command line policies will work, you need to enable policies like this: +``` +defaults write org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE +``` diff --git a/mac/org.mozilla.firefox.plist b/mac/org.mozilla.firefox.plist index a2ba037..db7da2d 100644 --- a/mac/org.mozilla.firefox.plist +++ b/mac/org.mozilla.firefox.plist @@ -3,7 +3,7 @@ EnterprisePoliciesEnabled - + AppUpdateURL https://www.example.com/update.xml Authentication @@ -187,7 +187,7 @@ Homepage URL - about:policies + http://example.com Locked Additional