forked from eduvpn/macos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.sh
executable file
·35 lines (27 loc) · 1.09 KB
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
echo "This will uninstall files related to eduVPN"
read -p "Continue stopping helper process (y/n)?" choice
case "$choice" in
y|Y ) ;;
n|N ) echo "Aborting uninstall."; exit 0;;
* ) echo "Invalid response."; exit 0;;
esac
echo "Removing helper process"
sudo launchctl remove org.eduvpn.app.openvpnhelper
read -p "Continue deleting files (y/n)?" choice
case "$choice" in
y|Y ) ;;
n|N ) echo "Aborting uninstall."; exit 0;;
* ) echo "Invalid response."; exit 0;;
esac
echo "Deleting /Library/LaunchDaemons/org.eduvpn.app.openvpnhelper.plist"
sudo rm -f /Library/LaunchDaemons/org.eduvpn.app.openvpnhelper.plist
echo "Deleting /Library/PrivilegedHelperTools/org.eduvpn.app.openvpnhelper"
sudo rm -f /Library/PrivilegedHelperTools/org.eduvpn.app.openvpnhelper
echo "Deleting ~/Library/Application Support/eduVPN/"
rm -rf ~/Library/Application\ Support/eduVPN/
echo "Deleting ~/Library/Caches/org.eduvpn.app/"
rm -rf ~/Library/Caches/org.eduvpn.app/
echo "Deleting ~/Library/Preferences/org.eduvpn.app.plist"
rm -f ~/Library/Preferences/org.eduvpn.app.plist
echo "Uninstall completed."