remove gui
parent
1cded717bc
commit
72ea2b6784
|
@ -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
|
|
@ -88,6 +88,8 @@ git clone https://github.com/Can202/ZeroTierInstaller
|
||||||
cd ZeroTierInstaller/
|
cd ZeroTierInstaller/
|
||||||
git checkout dev
|
git checkout dev
|
||||||
cd media/
|
cd media/
|
||||||
|
chmod a+x zerotier-gui-remove
|
||||||
|
cp zerotier-gui-remove /usr/bin/zerotier-gui-remove
|
||||||
cp zerotier-gui.png /opt/ZeroTierInstaller/
|
cp zerotier-gui.png /opt/ZeroTierInstaller/
|
||||||
chmod a+x zerotier-exec
|
chmod a+x zerotier-exec
|
||||||
cp zerotier-exec /opt/ZeroTierInstaller/
|
cp zerotier-exec /opt/ZeroTierInstaller/
|
||||||
|
|
Loading…
Reference in New Issue