mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
[Aria2] Make changes to port from ARM64 to AMD64
This commit is contained in:
parent
9edb28a374
commit
1907a7c760
2 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
|
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2024 tteck
|
||||||
# Author: tteck (tteckster)
|
# Author: tteck (tteckster)
|
||||||
# License: MIT
|
# License: MIT
|
||||||
|
|
|
@ -17,9 +17,6 @@ msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y curl
|
||||||
$STD apt-get install -y sudo
|
$STD apt-get install -y sudo
|
||||||
$STD apt-get install -y mc
|
$STD apt-get install -y mc
|
||||||
$STD apt-get install -y wget
|
|
||||||
$STD apt-get install -y unzip
|
|
||||||
$STD apt-get install -y nginx
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Aria2"
|
msg_info "Installing Aria2"
|
||||||
|
@ -29,11 +26,13 @@ msg_ok "Installed Aria2"
|
||||||
read -r -p "Would you like to add AriaNG? <y/N> " prompt
|
read -r -p "Would you like to add AriaNG? <y/N> " prompt
|
||||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Installing AriaNG"
|
msg_info "Installing AriaNG"
|
||||||
|
$STD apt-get install -y nginx
|
||||||
|
$STD apt-get install -y unzip
|
||||||
cd /root
|
cd /root
|
||||||
mkdir -p /var/www
|
mkdir -p /var/www
|
||||||
wget -q "$(curl -s https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)" -O /root/ariang.zip
|
wget -q "$(curl -s https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)" -O /root/ariang.zip
|
||||||
$STD unzip "$(ls -l /root | grep zip$ | awk '{print $9}')" -d /var/www
|
$STD unzip "$(ls -l /root | grep zip$ | awk '{print $9}')" -d /var/www
|
||||||
cat <<EOF >/etc/nginx/conf.d/ariang.conf
|
cat <<EOF >/etc/nginx/conf.d/ariang.conf
|
||||||
server {
|
server {
|
||||||
listen 6880 default_server;
|
listen 6880 default_server;
|
||||||
listen [::]:6880 default_server;
|
listen [::]:6880 default_server;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue