From f0da51e7312a6ff172edf3735cb6cfed2f84a481 Mon Sep 17 00:00:00 2001 From: chenpt Date: Sat, 7 Oct 2023 14:43:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Miscellaneous/BBR/BBR.sh | 4 ++-- Torrent Clients/Deluge/Deluge_install.sh | 10 +++++----- Torrent Clients/qBittorrent/qBittorrent_install.sh | 6 +++--- seedbox_installation.sh | 4 ++-- tweaking.sh | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Miscellaneous/BBR/BBR.sh b/Miscellaneous/BBR/BBR.sh index 4a58577..ae55850 100644 --- a/Miscellaneous/BBR/BBR.sh +++ b/Miscellaneous/BBR/BBR.sh @@ -8,10 +8,10 @@ apt-get -qqy install dkms apt-get -qqy install linux-headers-$(uname -r) distro_codename="$(source /etc/os-release && printf "%s" "${VERSION_CODENAME}")" if [[ $distro_codename = buster ]]; then - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/5.10.0/tcp_bbrx.c + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/5.10.0/tcp_bbrx.c kernel_ver=5.10.0 elif [[ $distro_codename = bullseye ]] ; then - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/5.15.0/tcp_bbrx.c + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/5.15.0/tcp_bbrx.c kernel_ver=5.15.0 fi algo=bbrx diff --git a/Torrent Clients/Deluge/Deluge_install.sh b/Torrent Clients/Deluge/Deluge_install.sh index 67b4824..804197d 100644 --- a/Torrent Clients/Deluge/Deluge_install.sh +++ b/Torrent Clients/Deluge/Deluge_install.sh @@ -24,7 +24,7 @@ function Deluge_install { if [[ $distro_codename = buster ]]; then ## Installing Libtorrent apt-get -qqy install libboost-all-dev libboost-dev python python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/libtorrent/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/libtorrent/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb dpkg -r libtorrent-rasterbar dpkg -i /root/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb && rm /root/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb ldconfig @@ -91,9 +91,9 @@ EOF pip install Twisted service-identity mako chardet pyopenssl wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyxdg/python-xdg_0.26-1ubuntu1_all.deb dpkg -i python-xdg_0.26-1ubuntu1_all.deb - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/boost/boost-1-69-0_20220512-1_amd64.deb + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/boost/boost-1-69-0_20220512-1_amd64.deb dpkg -i boost-1-69-0_20220512-1_amd64.deb - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/libtorrent/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/libtorrent/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb dpkg -r libtorrent-rasterbar dpkg -i /root/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb && rm /root/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb ldconfig @@ -274,8 +274,8 @@ EOF ## Setting up WebUI config DWSALT=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32) - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/deluge.Userpass.py - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/deluge.addHost.py + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/deluge.Userpass.py + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/deluge.addHost.py DWP=$(python2 /root/deluge.Userpass.py $password $DWSALT) DUDID=$(python2 /root/deluge.addHost.py) cat << EOF >/home/$username/.config/deluge/web.conf diff --git a/Torrent Clients/qBittorrent/qBittorrent_install.sh b/Torrent Clients/qBittorrent/qBittorrent_install.sh index 554b67c..15018eb 100644 --- a/Torrent Clients/qBittorrent/qBittorrent_install.sh +++ b/Torrent Clients/qBittorrent/qBittorrent_install.sh @@ -38,7 +38,7 @@ function qBittorrent_download { *) warn_1; echo "Please choose a valid version"; normal_3;; esac done - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qBittorrent/qBittorrent%20$qBver%20-%20$libver/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qBittorrent/qBittorrent%20$qBver%20-%20$libver/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox } function qBittorrent_install { @@ -117,7 +117,7 @@ WebUI\Port=8080 WebUI\Username=$username EOF elif [[ "${qBver}" =~ "4.2."|"4.3." ]]; then - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen PBKDF2password=$($HOME/qb_password_gen $password) cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf [BitTorrent] @@ -142,7 +142,7 @@ WebUI\Port=8080 WebUI\Username=$username EOF elif [[ "${qBver}" =~ "4.4."|"4.5."|"4.6." ]]; then - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen PBKDF2password=$($HOME/qb_password_gen $password) cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf [Application] diff --git a/seedbox_installation.sh b/seedbox_installation.sh index b7333dc..aaae5fc 100644 --- a/seedbox_installation.sh +++ b/seedbox_installation.sh @@ -13,7 +13,7 @@ function Update { ## qBittorrent function qBittorrent { warn_2 - source <(wget -qO- https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qBittorrent_install.sh) + source <(wget -qO- https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qBittorrent_install.sh) qBittorrent_download qBittorrent_install qBittorrent_config @@ -24,7 +24,7 @@ function qBittorrent { ## Deluge function Deluge { warn_2 - source <(wget -qO- https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/Deluge_install.sh) + source <(wget -qO- https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/Deluge_install.sh) Deluge_download Deluge_install Deluge_config diff --git a/tweaking.sh b/tweaking.sh index eb5a133..82a66a6 100644 --- a/tweaking.sh +++ b/tweaking.sh @@ -503,7 +503,7 @@ function Tweaked_BBR { echo "deb http://deb.debian.org/debian bullseye-backports main" | sudo tee -a /etc/apt/sources.list apt-get -qqy update && apt -qqyt bullseye-backports upgrade fi - wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/BBR.sh && chmod +x BBR.sh + wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/BBR.sh && chmod +x BBR.sh ## Install tweaked BBR automatically on reboot cat << EOF > /etc/systemd/system/bbrinstall.service [Unit]