From 382771d7c9129cf4c9070e55cf8dede282a64bec Mon Sep 17 00:00:00 2001
From: Sam Heinz <54530346+asylumexp@users.noreply.github.com>
Date: Thu, 18 Apr 2024 17:16:54 +1000
Subject: [PATCH] [Aria2] Move to /root dir when installing AriaNG

---
 install/aria2-install.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/install/aria2-install.sh b/install/aria2-install.sh
index 09df01de..5aacb254 100644
--- a/install/aria2-install.sh
+++ b/install/aria2-install.sh
@@ -29,6 +29,7 @@ msg_ok "Installed Aria2"
 read -r -p "Would you like to add AriaNG? <y/N> " prompt
 if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
   msg_info "Installing AriaNG"
+  cd /root
   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
   unzip "$(ls -l /root | grep zip$ | awk '{print $9}')" -d /var/www