-
-
Save nmcspadden/ebe1db033d4c12046b4cf4080fb37aba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Our managed installs and uninstalls: | |
my_list_of_managed_installs = [ | |
'GoogleChrome', | |
'Firefox', | |
] | |
my_list_of_managed_uninstalls = [ | |
'MacKeeper', | |
] | |
# Read the file from the Managed Installs manifests directory | |
local = readInLocalManifestOnDisk('/Library/Managed Installs/manifests/extra_packages') | |
# Assign our local managed installs | |
local['managed_installs'] = my_list_of_managed_installs | |
# Assign our local managed uninstalls | |
local['managed_uninstalls'] = my_list_of_managed_uninstalls | |
# Write back to disk | |
writeLocalManifestToDisk(local, '/Library/Managed Installs/manifests/extra_packages') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment