uninstaller erweitert
This commit is contained in:
parent
e97e8599b9
commit
db2799eab3
@ -22,21 +22,21 @@ if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1
|
||||
then
|
||||
echo Wire-G wird installiert...
|
||||
mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli
|
||||
cp wg_on_start /home/"$USER"/.local/bin/
|
||||
cp wg_on_start /home/"$USER"/.local/bin/ ; chmod +x /home/"$USER"/.local/bin/wg_on_start
|
||||
if ! which yad > /dev/null ; then sudo apt install yad -y > /dev/null 2>&1 ; echo yad wird installiert. Bitte warten... ; fi
|
||||
|
||||
elif grep -i 'arch\|manjaro\|garuda\|endeavour|' /etc/os-release > /dev/null 2>&1
|
||||
then
|
||||
echo Wire-G wird installiert...
|
||||
mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli
|
||||
cp wg_on_start /home/"$USER"/.local/bin/
|
||||
cp wg_on_start /home/"$USER"/.local/bin/ ; chmod +x /home/"$USER"/.local/bin/wg_on_start
|
||||
if ! which yad > /dev/null ; then sudo pacman -S --noconfirm yad > /dev/null 2>&1 ; echo yad wird installiert. Bitte warten... ; fi
|
||||
|
||||
elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1
|
||||
then
|
||||
echo Wire-G wird installiert...
|
||||
mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli
|
||||
cp wg_on_start /home/"$USER"/.local/bin/
|
||||
cp wg_on_start /home/"$USER"/.local/bin/; chmod +x /home/"$USER"/.local/bin/wg_on_start
|
||||
if ! which yad > /dev/null ; then sudo dnf install yad > /dev/null 2>&1 ; echo yad wird installiert. Bitte warten... ; fi
|
||||
|
||||
elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
|
||||
@ -52,7 +52,7 @@ elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
|
||||
then
|
||||
echo Wire-G wird installiert...
|
||||
mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli
|
||||
cp wg_on_start /home/"$USER"/.local/bin/
|
||||
cp wg_on_start /home/"$USER"/.local/bin/ ; chmod +x /home/"$USER"/.local/bin/wg_on_start
|
||||
|
||||
else
|
||||
exit 1
|
||||
|
@ -13,7 +13,7 @@
|
||||
cd || exit
|
||||
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
|
||||
wait;
|
||||
rm -r /home/"$USER"/.config/wg_nmcli
|
||||
rm -r /home/"$USER"/.config/wg_nmcli ; rm /home/$USER/.config/autostart/wg_on_start.desktop ; rm /home/"$USER"/.local/bin/wg_on_start
|
||||
wait;
|
||||
sudo rm /usr/share/icons/Arch-Symbole/wg-vpn.png ; sudo rm /sbin/wire_g ; sudo rm /sbin/wg_stop
|
||||
wait;
|
||||
|
Loading…
x
Reference in New Issue
Block a user