mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
[Aria2] Create AriaNG service and silence unzip
This commit is contained in:
parent
53389357f6
commit
9edb28a374
2 changed files with 9 additions and 6 deletions
|
@ -32,8 +32,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
|||
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
|
||||
service_path="/etc/systemd/system/ariang.service"
|
||||
$STD unzip "$(ls -l /root | grep zip$ | awk '{print $9}')" -d /var/www
|
||||
cat <<EOF >/etc/nginx/conf.d/ariang.conf
|
||||
server {
|
||||
listen 6880 default_server;
|
||||
|
@ -50,7 +49,9 @@ server {
|
|||
}
|
||||
EOF
|
||||
rm /etc/nginx/sites-enabled/*
|
||||
systemctl restart nginx
|
||||
$STD systemctl disable --now nginx
|
||||
$STD cp /lib/systemd/system/nginx.service /lib/systemd/system/ariang.service
|
||||
$STD systemctl enable --now ariang
|
||||
msg_ok "Installed AriaNG"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue