From: Michael Kaply Date: Mon, 10 Dec 2018 21:55:18 +0000 (-0600) Subject: Merge pull request #303 from mozilla/mac_policy X-Git-Tag: v1.4~5 X-Git-Url: https://git.p6c8.net/policy-templates.git/commitdiff_plain/4cc86996596b69ddd055786d44e4d13d662c8883?hp=586e68895d45fe6e9252c08b743aa509782d4c5f Merge pull request #303 from mozilla/mac_policy Inital checkin of Mac policy support --- 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