Skip to content

Instantly share code, notes, and snippets.

@grahampugh
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahampugh/4f6faadc744f15604cd0 to your computer and use it in GitHub Desktop.
Save grahampugh/4f6faadc744f15604cd0 to your computer and use it in GitHub Desktop.
Uninstall method for MSC Do Not Disturb
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/sh
/bin/rm -rf "/Applications/Managed Software Center Do Not Disturb.app" \
/usr/local/munki/preflight.d/msc-do-not-disturb.py
/usr/bin/defaults write /Library/Preferences/ManagedInstalls.plist SuppressUserNotification -bool FALSE
/usr/sbin/pkgutil --forget uk.ac.bris.MSC-Do-Not-Disturb</string>
<key>uninstallable</key>
<true/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment