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
|
@ -20,7 +20,7 @@ EOF
|
|||
header_info
|
||||
echo -e "Loading..."
|
||||
APP="Aria2"
|
||||
var_disk="6"
|
||||
var_disk="8"
|
||||
var_cpu="2"
|
||||
var_ram="1028"
|
||||
var_os="debian"
|
||||
|
@ -68,5 +68,7 @@ build_container
|
|||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${APP} maintenance page should be reachable by going to the following URL.
|
||||
${BL}http://${IP}:6800 \n"
|
||||
echo -e "${APP} should be accessible via the following IP.
|
||||
${BL}http://${IP}:6800${CL}"
|
||||
echo -e "AriaNG should be reachable by going to the following URL.
|
||||
${BL}http://${IP}:6880${CL} \n"
|
||||
|
|
|
@ -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