ALL DISTROS xD

master
Can202 2021-06-12 14:30:37 -04:00
parent ebef19ca87
commit 499ef347bc
2 changed files with 45 additions and 9 deletions

View File

@ -1,2 +1,2 @@
# ZeroTierInstaller
Debian, Ubuntu, Linux Mint (not finished)
works on Debian-based (apt), Arch-based (pacman), Fedora-like(dnf) and OpenSUSE based (zypper)

View File

@ -25,16 +25,52 @@ else
fi
fi
echo "this script works on Debian, Ubuntu, Linux Mint, etc. (apt)"
echo "continue?(y/n)"
read debbased
if [ $debbased = n ]
echo "Do you use Distros based on Debian, Ubuntu, Linux Mint, etc. (apt), y/n"
read deb
if [ $deb = y ]
then
echo abort
exit
sudo apt install curl git python3 python3-tk xterm
echo satisfied dependencies
else
if [ $deb = n ]
then
echo "Do you use Distros based on Fedora, Red Hat, Mageia, etc. (dnf), y/n"
read dnf
if [ $dnf = y ]
then
sudo dnf install curl git python3 python3-tkinter xterm
echo satisfied dependencies
else
echo "Do you use Distros based on Arch, Manjaro, etc (pacman), y/n"
read pacman
if [ $pacman = y ]
then
sudo pacman -S curl git python tk xterm
echo satisfied dependencies
else
echo "Do you use Distros based on OpenSUSE (zypper), y/n"
read zypper
if [ $zypper = y ]
then
sudo zypper install curl git xterm python3 python3-tk
echo satisfied dependencies
else
echo "do you want to continue without the satisfied dependencies?, y/n"
read nodep
if [ $nodep = n ]
then
echo ABORT
exit
fi
fi
fi
fi
else
echo ABORT
exit
fi
fi
sudo apt install curl git python3 python3-tk xterm
echo satisfied dependencies
xterm -e "curl -s https://install.zerotier.com | sudo bash"