Bump various scripts to Debian 13 (Trixie) (#11093)

This commit is contained in:
CanbiZ (MickLesk)
2026-01-23 21:54:23 +01:00
committed by GitHub
parent 5c122f0b5c
commit b2017086cd
109 changed files with 306 additions and 355 deletions

View File

@@ -14,18 +14,20 @@ network_check
update_os
msg_info "Installing Aria2"
$STD apt-get install -y aria2
$STD apt install -y aria2
msg_ok "Installed Aria2"
read -r -p "${TAB3}Would you like to add AriaNG? <y/N> " prompt
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
msg_info "Installing AriaNG"
$STD apt-get install -y nginx
msg_info "Installing Dependencies"
$STD apt install -y nginx
systemctl disable -q --now nginx
curl -fsSL "$(curl -fsSL https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)" -o $(basename "$(curl -fsSL https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)")
$STD unzip AriaNg-*-AllInOne.zip -d /var/www
rm AriaNg-*-AllInOne.zip
rm /etc/nginx/sites-enabled/*
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "ariang" "mayswind/ariang" "prebuild" "latest" "/var/www" "AriaNg-*-AllInOne.zip"
msg_info "Configure nginx"
cat <<EOF >/etc/nginx/conf.d/ariang.conf
server {
listen 6880 default_server;
@@ -42,11 +44,12 @@ server {
}
EOF
cp /lib/systemd/system/nginx.service /lib/systemd/system/ariang.service
msg_ok "Installed AriaNG"
systemctl enable -q --now ariang
msg_ok "Configured nginx"
fi
msg_info "Creating Service"
mkdir /root/downloads
mkdir -p /root/downloads
rpc_secret=$(openssl rand -base64 8)
echo "rpc-secret: $rpc_secret" >>~/rpc.secret
cat <<EOF >/root/aria2.daemon
@@ -80,7 +83,6 @@ Restart=on-failure
WantedBy=multi-user.target
EOF
systemctl enable -q --now aria2
systemctl enable -q --now ariang
msg_ok "Created Service"
motd_ssh