More macos uninstall hackery

pull/1239/head
Jason Rhinelander 4 years ago
parent 86a67db87a
commit 1a552d580e

@ -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

Loading…
Cancel
Save