mirror of
https://github.com/munki/munki.git
synced 2026-01-04 21:50:03 -06:00
22 lines
691 B
Bash
Executable File
22 lines
691 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Merciless uninstall of munki.
|
|
|
|
if [ `id -u` -ne 0 ]; then
|
|
echo "Munki uninstallation must be run by root"
|
|
exit 1
|
|
fi
|
|
|
|
launchctl unload /Library/LaunchDaemons/com.googlecode.munki.*
|
|
rm -rf '/Applications/Utilities/Managed Software Update.app'
|
|
rm -rf '/Applications/Managed Software Center.app'
|
|
rm -f /Library/LaunchDaemons/com.googlecode.munki.*
|
|
rm -f /Library/LaunchAgents/com.googlecode.munki.*
|
|
rm -rf '/Library/Managed Installs'
|
|
rm -rf /usr/local/munki
|
|
pkgutil --forget com.googlecode.munki.core
|
|
pkgutil --forget com.googlecode.munki.admin
|
|
pkgutil --forget com.googlecode.munki.app
|
|
pkgutil --forget com.googlecode.munki.launchd
|
|
pkgutil --forget com.googlecode.munki
|