From fee4f2261642bbf11c7860f681ef38c2009e96f9 Mon Sep 17 00:00:00 2001
From: Sam Heinz <54530346+asylumexp@users.noreply.github.com>
Date: Mon, 15 Apr 2024 18:36:45 +1000
Subject: [PATCH] [Aria2] Fix wget download location

---
 install/aria2-install.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/install/aria2-install.sh b/install/aria2-install.sh
index 7f6bdc01..ffbedf33 100644
--- a/install/aria2-install.sh
+++ b/install/aria2-install.sh
@@ -29,7 +29,7 @@ read -r -p "Would you like to add AriaNG? <y/N> " prompt
 if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
   msg_info "Installing AriaNG"
   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)"
+  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
   ZIP="$(ls -l /root | grep zip$ | awk '{print $9}')"
   unzip $FILENAME -d /var/www
   service_path="/etc/systemd/system/ariang.service"
@@ -88,6 +88,7 @@ motd_ssh
 customize
 
 msg_info "Cleaning up"
+rm $ZIP
 $STD apt-get autoremove
 $STD apt-get autoclean
 msg_ok "Cleaned"