mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
[Aria2] Add header ascii text and fix wget for AriaNG
This commit is contained in:
parent
b92110b17a
commit
05fc12a0ec
2 changed files with 9 additions and 9 deletions
14
ct/aria2.sh
14
ct/aria2.sh
|
@ -8,18 +8,18 @@ source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/b
|
||||||
function header_info {
|
function header_info {
|
||||||
clear
|
clear
|
||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
___ __ ______ __ _ ________
|
___ _ ___
|
||||||
/ | ____ / /_ / ____/___ ______/ /_ ___ _____ / | / / ____/
|
/ | _____(_)___ |__ \
|
||||||
/ /| | / __ \/ __/__/ / / __ `/ ___/ __ \/ _ \/ ___/__/ |/ / / __
|
/ /| | / ___/ / __ `/_/ /
|
||||||
/ ___ |/ /_/ / /_/__/ /___/ /_/ / /__/ / / / __/ / /__/ /| / /_/ /
|
/ ___ |/ / / / /_/ / __/
|
||||||
/_/ |_/ .___/\__/ \____/\__,_/\___/_/ /_/\___/_/ /_/ |_/\____/
|
/_/ |_/_/ /_/\__,_/____/
|
||||||
/_/
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
echo -e "Loading..."
|
echo -e "Loading..."
|
||||||
APP="aria2"
|
APP="Aria2"
|
||||||
var_disk="6"
|
var_disk="6"
|
||||||
var_cpu="2"
|
var_cpu="2"
|
||||||
var_ram="1028"
|
var_ram="1028"
|
||||||
|
|
|
@ -25,11 +25,11 @@ msg_info "Installing Aria2"
|
||||||
DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confold" install -y aria2
|
DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confold" install -y aria2
|
||||||
msg_ok "Installed Aria2"
|
msg_ok "Installed Aria2"
|
||||||
|
|
||||||
read -r -p "Would you like to add ar? <y/N> " prompt
|
read -r -p "Would you like to add AriaNG? <y/N> " prompt
|
||||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Installing AriaNG"
|
msg_info "Installing AriaNG"
|
||||||
mkdir -p /var/www
|
mkdir -p /var/www
|
||||||
wget -q $(curl -s https://api.github.com/repos/maywind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)
|
wget -q "$(curl -s https://api.github.com/repos/mayswind/ariang/releases/latest | grep download | grep AllInOne.zip | cut -d\" -f4)"
|
||||||
ZIP="$(ls -l /root | grep zip$ | awk '{print $9}')"
|
ZIP="$(ls -l /root | grep zip$ | awk '{print $9}')"
|
||||||
unzip $FILENAME -d /var/www
|
unzip $FILENAME -d /var/www
|
||||||
service_path="/etc/systemd/system/ariang.service"
|
service_path="/etc/systemd/system/ariang.service"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue