remove gui

master
Can202 2021-09-12 01:15:18 -03:00
parent 1cded717bc
commit 72ea2b6784
2 changed files with 20 additions and 0 deletions

18
media/zerotier-gui-remove Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
if [ ! $(whoami) = "root" ]
then
if [ -f "/usr/bin/dialog" ] || [ -f "/usr/sbin/dialog" ] || [ -f "/usr/games/dialog" ]
then
dialog --title "root" --msgbox "You need run this script as root" 0 0
else
echo "You need run this script as root"
fi
clear
exit
fi
rm -vrf /usr/share/applications/zerotier-gui*
rm -vrf /opt/ZeroTierInstaller/
rm -vrf /usr/bin/zerotier-gui
rm -vrf /usr/bin/zerotier-gui-remove

View File

@ -88,6 +88,8 @@ git clone https://github.com/Can202/ZeroTierInstaller
cd ZeroTierInstaller/
git checkout dev
cd media/
chmod a+x zerotier-gui-remove
cp zerotier-gui-remove /usr/bin/zerotier-gui-remove
cp zerotier-gui.png /opt/ZeroTierInstaller/
chmod a+x zerotier-exec
cp zerotier-exec /opt/ZeroTierInstaller/