mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
[Aria2] Fix unzip of AriaNG
This commit is contained in:
parent
699365f393
commit
d5e11dc4b4
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue