zypper install all in one
parent
61856f2c2c
commit
6e9aa28d70
11
zerotier.sh
11
zerotier.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PACMAN="no"
|
NOINSTALLONCURL="no"
|
||||||
|
|
||||||
echo "do you use sudo command?(y/n)"
|
echo "do you use sudo command?(y/n)"
|
||||||
read sucommand
|
read sucommand
|
||||||
|
@ -47,7 +47,7 @@ else
|
||||||
read pacman
|
read pacman
|
||||||
if [ $pacman = y ]
|
if [ $pacman = y ]
|
||||||
then
|
then
|
||||||
PACMAN="yes"
|
NOINSTALLONCURL="yes"
|
||||||
sudo pacman -Sy curl git python tk xterm zerotier-one
|
sudo pacman -Sy curl git python tk xterm zerotier-one
|
||||||
echo satisfied dependencies
|
echo satisfied dependencies
|
||||||
else
|
else
|
||||||
|
@ -57,10 +57,9 @@ else
|
||||||
then
|
then
|
||||||
sudo zypper addrepo https://download.opensuse.org/repositories/home:Dead_Mozay/openSUSE_Tumbleweed/home:Dead_Mozay.repo
|
sudo zypper addrepo https://download.opensuse.org/repositories/home:Dead_Mozay/openSUSE_Tumbleweed/home:Dead_Mozay.repo
|
||||||
sudo zypper refresh
|
sudo zypper refresh
|
||||||
sudo zypper install ZeroTierOne
|
sudo zypper install ZeroTierOne curl git xterm python3 python3-tk
|
||||||
sudo zypper install curl git xterm python3 python3-tk
|
|
||||||
echo satisfied dependencies
|
echo satisfied dependencies
|
||||||
PACMAN="yes"
|
NOINSTALLONCURL="yes"
|
||||||
else
|
else
|
||||||
echo "do you want to continue without the satisfied dependencies?, y/n"
|
echo "do you want to continue without the satisfied dependencies?, y/n"
|
||||||
read nodep
|
read nodep
|
||||||
|
@ -78,7 +77,7 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $PACMAN = no ]
|
if [ $NOINSTALLONCURL = no ]
|
||||||
then
|
then
|
||||||
xterm -e "curl -s https://install.zerotier.com | sudo bash"
|
xterm -e "curl -s https://install.zerotier.com | sudo bash"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue