More macos uninstall hackery

This commit is contained in:
Jason Rhinelander 2020-04-22 00:04:13 -03:00
parent 86a67db87a
commit 1a552d580e
1 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
#!/bin/sh
touch /var/lib/lokinet/suspend-launchd-service # Prevent the `stop` below from immediately restarting it
touch /var/lib/lokinet/suspend-launchd-service # Prevent restarting on exit
killall lokinet
sleep 5 # Give it some time to shut down before we bring launchd into this
launchctl stop network.loki.lokinet.daemon
sleep 5 # Give it some time to shut down before we unload
launchctl unload /Library/LaunchDaemons/network.loki.lokinet.daemon.plist
killall lokinet
rm -rf /Library/LaunchDaemons/network.loki.lokinet.daemon.plist
rm -rf /Applications/LokinetGUI.app