-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.sh
35 lines (28 loc) · 864 Bytes
/
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 "=============================="
echo " OpenGUI Uninstaller"
echo "=============================="
if [[ $EUID -ne 0 ]]; then
echo "Please run this script with 'sudo' or as root."
exit 1
fi
echo "Starts the OpenGUI removal process..."
if [[ -f /usr/share/applications/opengui.desktop ]]; then
echo "Delete desktop entries..."
sudo rm -f /usr/share/applications/opengui.desktop
else
echo "Desktop entry not found, skip this step."
fi
if [[ -d /opt/opengui ]]; then
echo "Deleting the /opt/opengui folder..."
sudo rm -rf /opt/opengui
else
echo "Folder /opt/opengui not found, skip this step."
fi
if [[ -f /usr/bin/opengui ]]; then
echo "Removing opengui binaries..."
sudo rm -f /usr/bin/opengui
else
echo "Opengui binary not found, skip this step."
fi
echo "The OpenGUI removal process is complete."