From d03898db2ad124ce722025066f062400b0eca257 Mon Sep 17 00:00:00 2001 From: jerry048 Date: Thu, 27 May 2021 19:38:30 +0800 Subject: [PATCH] Update --- .seedbox_installation.sh | 21 +++++++++++---------- .tweaking.sh | 4 ++-- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.seedbox_installation.sh b/.seedbox_installation.sh index fe7089c..4683c54 100644 --- a/.seedbox_installation.sh +++ b/.seedbox_installation.sh @@ -20,25 +20,25 @@ function qBittorrent_download { do case $opt in "qBittorrent 4.1.9 - libtorrent-1_1_14") - version=4.1.9; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break + version=4.1.9; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break ;; "qBittorrent 4.1.9.1 - libtorrent-1_1_14") - version=4.1.9.1; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9.1%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break + version=4.1.9.1; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.1.9.1%20-%20libtorrent-1_1_14/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break ;; "qBittorrent 4.3.3 - libtorrent-v1.2.12-Lactency") - version=4.3.3; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break + version=4.3.3; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break ;; "qBittorrent 4.3.3 - libtorrent-v1.2.13") - version=4.3.3; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break + version=4.3.3; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.3%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break ;; "qBittorrent 4.3.4.1 - libtorrent-v1.2.13-Lactency") - version=4.3.4.1; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break + version=4.3.4.1; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.12-Lactency/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break ;; "qBittorrent 4.3.4.1 - libtorrent-v1.2.13") - version=4.3.4.1; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break + version=4.3.4.1; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.4.1%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break ;; "qBittorrent 4.3.5 - libtorrent-v1.2.13") - version=4.3.5; curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.5%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break + version=4.3.5; wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/qBittorrent/qBittorrent%204.3.5%20-%20libtorrent-v1.2.13/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox; break ;; *) tput setaf 1; echo "Please choose a valid version";; esac @@ -93,7 +93,7 @@ WebUI\Port=8080 WebUI\Username=$username EOF elif [[ "${version}" =~ "4.2."|"4.3." ]]; then - curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/qb_password_gen && chmod +x $HOME/qb_password_gen + wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/qb_password_gen && chmod +x $HOME/qb_password_gen PBKDF2password=$($HOME/qb_password_gen $password) cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf [LegalNotice] @@ -138,8 +138,9 @@ function Decision2 { } function autoremove-torrents { tput setaf 7 - apt-get -qqy install python3-distutils > /dev/null - apt-get -qqy install python3-apt > /dev/null + apt-get -qqy install python3-distutils + apt-get -qqy install python3-apt + apt-get -qqy install curl curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py rm get-pip.py diff --git a/.tweaking.sh b/.tweaking.sh index fefb7bb..a68c72d 100644 --- a/.tweaking.sh +++ b/.tweaking.sh @@ -473,7 +473,7 @@ function BBR_Prepare { echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list apt-get -qqy update apt-get -qqy install linux-image-5.9.0-0.bpo.5-amd64 - curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/BBR.sh && chmod +x BBR.sh + wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/BBR.sh && chmod +x BBR.sh tput setaf 1 } function BBR_Tweaking { @@ -482,7 +482,7 @@ function BBR_Tweaking { apt-get -qqy install dkms > /dev/null apt-get -qqy install linux-headers-$(uname -r) > /dev/null tput setaf 7 - curl -s -O https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/5.9.0/tcp_bbrx.c + wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/BBR/5.9.0/tcp_bbrx.c kernel_ver=5.9.0 algo=bbrx bbr_file=tcp_$algo