Wire-G/uninstaller1.0.0

36 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-10-28 21:38:26 +02:00
#!/bin/bash
########################################################
########################################################
# Wire-G App for simple management a Wireguard Tunnel ##
# Author: Désiré Werner Menrath ##
# Email: polunga40@unity-mail.de ##
# Translate German to English with LibreTranslate ##
# Translatefiles edit with Poedit ##
# Use without warranty! ##
########################################################
########################################################
2023-10-28 21:38:26 +02:00
2023-10-28 22:45:53 +02:00
cd || exit
2023-11-20 18:38:22 +01:00
rm -f /home/"$USER"/.icons/wg-active.png wg-stop.png wg-vpn.png wg-import.png wg-trash.png wg-info.png wg-vpn-info.png 2>&1
2023-10-28 21:38:26 +02:00
wait;
2023-11-20 18:38:22 +01:00
rm -r /home/"$USER"/.config/wg_nmcli 2>&1
rm -r /home/"$USER"/.local/share/wg_nmcli 2>&1
2023-11-19 20:44:29 +01:00
if [ -d /home/$USER/.config/autostart ] # for GNOME, XFCE, KDE, Budgie
then
rm /home/$USER/.config/autostart/wgonstart.desktop > /dev/null 2>&1
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE
then
rm /home/$USER/.config/lxsession/Lubuntu/autostart/wgonstart.desktop > /dev/null 2>&1
fi
2023-10-28 21:38:26 +02:00
wait;
2023-11-20 18:38:22 +01:00
sudo rm /usr/share/icons/Arch-Symbole/wg-vpn.png 2>&1 ; sudo rm /sbin/wire_g 2>&1 ; sudo rm /sbin/wg_stop 2>&1 ; sudo rm /sbin/wg_on_start 2>&1
2023-10-28 21:38:26 +02:00
wait;
2023-11-20 18:38:22 +01:00
sudo rm /usr/share/applications/Wire-G.desktop 2>&1 ; sudo rm /usr/share/locale/de/LC_MESSAGES/wire-g.mo 2>&1
2023-11-20 18:29:39 +01:00
clear
2023-10-28 21:38:26 +02:00
echo "deinstallation erfolgreich!"
2023-10-28 22:45:53 +02:00
echo
2023-10-28 21:38:26 +02:00
read -n 1 -s -r -p "Zum Fenster schließen eine Taste drücken"
clear