From d5e11dc4b4260a249c43fbf944890b85aa1001c4 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:22:59 +1000 Subject: [PATCH] [Aria2] Fix unzip of AriaNG --- install/aria2-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/aria2-install.sh b/install/aria2-install.sh index 1adc9263..c71ed990 100644 --- a/install/aria2-install.sh +++ b/install/aria2-install.sh @@ -32,7 +32,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then 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 ZIP="$(ls -l /root | grep zip$ | awk '{print $9}')" - unzip $ZIP -d /var/www + unzip /root/$ZIP -d /var/www service_path="/etc/systemd/system/ariang.service" echo '[Unit] Description=AriaNG @@ -89,7 +89,7 @@ motd_ssh customize msg_info "Cleaning up" -rm $ZIP +rm /root/$ZIP $STD apt-get autoremove $STD apt-get autoclean msg_ok "Cleaned"