修改url

This commit is contained in:
chenpt 2023-10-07 14:30:04 +08:00
parent e29de0a98d
commit 136b13e449
5 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,7 @@
# Description: qb辅助函数 # Description: qb辅助函数
function qb_install() { function qb_install() {
wget -O "/usr/bin/$1" "https://code.shutu.site/shutu/seedbox/raw/branch/main/qb-nox/$1" && chmod +x "/usr/bin/$1" wget -O "/usr/bin/$1" "https://git.chenpt.cn/Seedbox/seedbox/raw/branch/main/qb-nox/$1" && chmod +x "/usr/bin/$1"
mv /usr/bin/$1 /usr/bin/qbittorrent-nox mv /usr/bin/$1 /usr/bin/qbittorrent-nox
qb_version=$1 qb_version=$1
@ -57,7 +57,7 @@ WebUI\Username=$2
WebUI\CSRFProtection=false WebUI\CSRFProtection=false
EOF EOF
elif [[ "$1" =~ "qb-nox-static-43" ]]; then elif [[ "$1" =~ "qb-nox-static-43" ]]; then
cd /home/$2 && wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x /home/$2/qb_password_gen cd /home/$2 && wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x /home/$2/qb_password_gen
PBKDF2password=$(/home/$2/qb_password_gen $3) PBKDF2password=$(/home/$2/qb_password_gen $3)
cat << EOF >/home/$2/.config/qBittorrent/qBittorrent.conf cat << EOF >/home/$2/.config/qBittorrent/qBittorrent.conf
[LegalNotice] [LegalNotice]

View File

@ -92,8 +92,8 @@ function vnstat_update() {
function bbrx_install() { function bbrx_install() {
echo -e "\033[36m ================= 杰佬 Tweaked BBR Install ================= \033[0m" echo -e "\033[36m ================= 杰佬 Tweaked BBR Install ================= \033[0m"
. <(wget -qO- https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Miscellaneous/tput.sh) . <(wget -qO- https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/tput.sh)
. <(wget -qO- https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/tweaking.sh) . <(wget -qO- https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/tweaking.sh)
apt-get -qqy install sudo apt-get -qqy install sudo
cd ~ cd ~
CPU_Tweaking; NIC_Tweaking; Network_Other_Tweaking; Scheduler_Tweaking; file_open_limit_Tweaking; kernel_Tweaking; CPU_Tweaking; NIC_Tweaking; Network_Other_Tweaking; Scheduler_Tweaking; file_open_limit_Tweaking; kernel_Tweaking;
@ -102,7 +102,7 @@ function bbrx_install() {
function boot_script() { function boot_script() {
echo -e "\033[36m ================= 杰佬 boot-script ================= \033[0m" echo -e "\033[36m ================= 杰佬 boot-script ================= \033[0m"
wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Miscellaneous/.boot-script.sh && chmod +x .boot-script.sh wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/.boot-script.sh && chmod +x .boot-script.sh
cat << EOF > /etc/systemd/system/boot-script.service cat << EOF > /etc/systemd/system/boot-script.service
[Unit] [Unit]
Description=boot-script Description=boot-script

View File

@ -14,13 +14,13 @@ port=$(($RANDOM+30000))
mkdir -p ~/bin mkdir -p ~/bin
mkdir -p ~/private/qBittorrent/data mkdir -p ~/private/qBittorrent/data
wget https://code.shutu.site/shutu/seedbox/raw/branch/main/qb-nox/qb-nox-static-438-lt1214-oracle wget https://git.chenpt.cn/Seedbox/seedbox/raw/branch/main/qb-nox/qb-nox-static-438-lt1214-oracle
mv qb-nox-static-438-lt1214-oracle qbittorrent-nox mv qb-nox-static-438-lt1214-oracle qbittorrent-nox
mv qbittorrent-nox ~/bin/ mv qbittorrent-nox ~/bin/
chmod +x ~/bin/qbittorrent-nox chmod +x ~/bin/qbittorrent-nox
mkdir -p ~/.config/qBittorrent mkdir -p ~/.config/qBittorrent
cd ~ && wget https://code.shutu.site/shutu/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x ~/qb_password_gen cd ~ && wget https://git.chenpt.cn/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x ~/qb_password_gen
PBKDF2password=$(~/qb_password_gen $password) PBKDF2password=$(~/qb_password_gen $password)
cat << EOF >~/.config/qBittorrent/qBittorrent.conf cat << EOF >~/.config/qBittorrent/qBittorrent.conf
[LegalNotice] [LegalNotice]

View File

@ -38,7 +38,7 @@ read num
echo -ne "install \033[35m${versions[$num]}\033[0m , press Ctrl + C to exit." echo -ne "install \033[35m${versions[$num]}\033[0m , press Ctrl + C to exit."
read read
. <(wget -qO- https://code.shutu.site/shutu/seedbox/raw/branch/main/component/qb_component.sh) . <(wget -qO- https://git.chenpt.cn/Seedbox/seedbox/raw/branch/main/component/qb_component.sh)
qb_install ${versions[$num]} $username qb_install ${versions[$num]} $username

View File

@ -28,7 +28,7 @@ do
esac esac
done done
. <(wget -qO- https://code.shutu.site/shutu/seedbox/raw/branch/main/component/seedbox_component.sh) . <(wget -qO- https://git.chenpt.cn/Seedbox/seedbox/raw/branch/main/component/seedbox_component.sh)
# create user # create user
if [[ ! -d "/home/$username" ]]; then if [[ ! -d "/home/$username" ]]; then
@ -40,7 +40,7 @@ apt_install
# qb install # qb install
echo -e "\033[36m ================= qb-nox安装 ================= \033[0m" echo -e "\033[36m ================= qb-nox安装 ================= \033[0m"
. <(wget -qO- https://code.shutu.site/shutu/seedbox/raw/branch/main/shell/qb-nox-static.sh) . <(wget -qO- https://git.chenpt.cn/Seedbox/seedbox/raw/branch/main/shell/qb-nox-static.sh)
# acme nginx # acme nginx
nginx_install $domain $webport $dns_type $dns_id $dns_key $dns_secret nginx_install $domain $webport $dns_type $dns_id $dns_key $dns_secret