Created
December 20, 2018 02:46
-
-
Save soomtong/0cdf57606fc6ed804ac0a1cf7b2cb1e5 to your computer and use it in GitHub Desktop.
Uninstall TimeMachineEditor Application
This file contains hidden or 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
| │ File: uninstall.sh | |
| ───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
| 1 │ #! /bin/sh | |
| 2 │ | |
| 3 │ if [ "$UID" -ne 0 ];then | |
| 4 │ echo "This script must be run as root." | |
| 5 │ exit 1 | |
| 6 │ fi | |
| 7 │ | |
| 8 │ killall TimeMachineEditor > /dev/null 2>&1 | |
| 9 │ | |
| 10 │ launchctl unload /Library/LaunchDaemons/com.tclementdev.timemachineeditor.scheduler.plist | |
| 11 │ rm /Library/LaunchDaemons/com.tclementdev.timemachineeditor.scheduler.plist | |
| 12 │ | |
| 13 │ rm -rf /Library/TimeMachineEditor | |
| 14 │ | |
| 15 │ rm -rf /Applications/TimeMachineEditor.app | |
| 16 │ | |
| 17 │ rm /usr/local/bin/tmectl | |
| 18 │ | |
| 19 │ rm /Library/Preferences/Logging/Subsystems/com.tclementdev.timemachineeditor.plist | |
| 20 │ | |
| 21 │ defaults delete com.tclementdev.timemachineeditor.scheduler > /dev/null 2>&1 | |
| 22 │ defaults delete com.timesoftware.timemachineeditor.helper > /dev/null 2>&1 | |
| 23 │ | |
| 24 │ security authorizationdb remove "com.tclementdev.timemachineeditor.settings.modify-1" > /dev/null 2>&1 | |
| 25 │ security authorizationdb remove "com.tclementdev.timemachineeditor.settings.modify-2" > /dev/null 2>&1 | |
| 26 │ security authorizationdb remove "com.tclementdev.timemachineeditor.uninstall" > /dev/null 2>&1 | |
| 27 │ | |
| 28 │ pkgutil --forget com.tclementdev.pkg.timemachineeditor > /dev/null 2>&1 | |
| 29 │ | |
| 30 │ exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment