update version

This commit is contained in:
2022-02-23 03:06:09 +01:00
parent 312e667efb
commit 817af8abdc
2 changed files with 14 additions and 27 deletions

View File

@@ -5,9 +5,11 @@ if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2 echo "This script must be run as root" 1>&2
exit 1 exit 1
fi fi
VERSION="Version: 1.1v "
clear clear
echo "$VERSION"
echo "################################################" echo "################################################"
echo "# Version: 1.0v #" echo "# #"
echo "# #" echo "# #"
echo "# Python3.9.2 #" echo "# Python3.9.2 #"
echo "# Quick Build #" echo "# Quick Build #"
@@ -33,7 +35,7 @@ echo "LETS GO!"
sudo apt update sudo apt update
sudo apt -y upgrade sudo apt -y upgrade
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev -y sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev -y
wget https://www.python.org/ftp/python/3.9.2/Python-3.9.9.tgz wget https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz
tar -xf Python-3.9.9.tgz tar -xf Python-3.9.9.tgz
cd Python-3.9.9 cd Python-3.9.9
./configure --enable-optimizations ./configure --enable-optimizations

View File

@@ -5,9 +5,11 @@ if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2 echo "This script must be run as root" 1>&2
exit 1 exit 1
fi fi
VERSION="Version: 1.0v"
clear clear
echo "$VERSION"
echo "################################################" echo "################################################"
echo "# Version: 0.1v #" echo "# #"
echo "# #" echo "# #"
echo "# Speedtest #" echo "# Speedtest #"
echo "# Installer #" echo "# Installer #"
@@ -32,36 +34,19 @@ echo "LETS GO!"
case "$SYSTEM" in case "$SYSTEM" in
"Debian") "Debian")
sudo apt install gnupg1 apt-transport-https dirmngr -y sudo apt-get install curl
export INSTALL_KEY=379CE192D401AB61 curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY sudo apt-get install speedtest-cli
echo "deb https://ookla.bintray.com/debian generic main" | sudo tee /etc/apt/sources.list.d/speedtest.list
sudo apt update
# Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using apt-get
sudo apt remove speedtest-cli -y
sudo apt install speedtest -y
echo "speedtest installer has end ..." echo "speedtest installer has end ..."
;; ;;
"Ubuntu") "Ubuntu")
sudo apt install gnupg1 apt-transport-https dirmngr -y sudo apt-get install curl
export INSTALL_KEY=379CE192D401AB61 curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY sudo apt-get install speedtest-cli
echo "deb https://ookla.bintray.com/debian generic main" | sudo tee /etc/apt/sources.list.d/speedtest.list
sudo apt update
# Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using apt-get
sudo apt remove speedtest-cli -y
sudo apt install speedtest -y
echo "speedtest installer has end ..." echo "speedtest installer has end ..."
;; ;;
"Kernel \r on an \m") "Kernel \r on an \m")
sudo yum install wget curl -s https://install.speedtest.net/app/cli/install.rpm.sh | sudo bash
wget https://bintray.com/ookla/rhel/rpm -O bintray-ookla-rhel.repo
sudo mv bintray-ookla-rhel.repo /etc/yum.repos.d/
# Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using yum
# rpm -qa | grep speedtest | xargs -I {} sudo yum -y remove {}
sudo yum install speedtest sudo yum install speedtest
;; ;;
*) *)