From 05fc12a0ec751384af04b0a7c945ed858a7b41b8 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Mon, 15 Apr 2024 18:07:45 +1000 Subject: [PATCH] [Aria2] Add header ascii text and fix wget for AriaNG --- ct/aria2.sh | 14 +++++++------- install/aria2-install.sh | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ct/aria2.sh b/ct/aria2.sh index a8511cf5..ee44d8f1 100644 --- a/ct/aria2.sh +++ b/ct/aria2.sh @@ -8,18 +8,18 @@ source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/b function header_info { clear cat <<"EOF" - ___ __ ______ __ _ ________ - / | ____ / /_ / ____/___ ______/ /_ ___ _____ / | / / ____/ - / /| | / __ \/ __/__/ / / __ `/ ___/ __ \/ _ \/ ___/__/ |/ / / __ - / ___ |/ /_/ / /_/__/ /___/ /_/ / /__/ / / / __/ / /__/ /| / /_/ / -/_/ |_/ .___/\__/ \____/\__,_/\___/_/ /_/\___/_/ /_/ |_/\____/ - /_/ + ___ _ ___ + / | _____(_)___ |__ \ + / /| | / ___/ / __ `/_/ / + / ___ |/ / / / /_/ / __/ +/_/ |_/_/ /_/\__,_/____/ + EOF } header_info echo -e "Loading..." -APP="aria2" +APP="Aria2" var_disk="6" var_cpu="2" var_ram="1028" diff --git a/install/aria2-install.sh b/install/aria2-install.sh index 8d6562e9..7f6bdc01 100644 --- a/install/aria2-install.sh +++ b/install/aria2-install.sh @@ -25,11 +25,11 @@ msg_info "Installing Aria2" DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confold" install -y aria2 msg_ok "Installed Aria2" -read -r -p "Would you like to add ar? " prompt +read -r -p "Would you like to add AriaNG? " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then msg_info "Installing AriaNG" mkdir -p /var/www - wget -q $(curl -s https://api.github.com/repos/maywind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4) + wget -q "$(curl -s https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)" ZIP="$(ls -l /root | grep zip$ | awk '{print $9}')" unzip $FILENAME -d /var/www service_path="/etc/systemd/system/ariang.service"