mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-15 10:26:44 +00:00
add aria2
This commit is contained in:
8
aria2/bootstrap.sh
Executable file
8
aria2/bootstrap.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ! [[ -z "${RPC_SECRET}" ]]; then
|
||||
sed -i '/rpc-secret=/d' /etc/aria2/aria2.conf
|
||||
echo -e "\nrpc_secret==$RPC_SECRET" >> /etc/aria2/aria2.conf
|
||||
fi
|
||||
|
||||
aria2c --conf-path=/etc/aria2/aria2.conf
|
||||
Reference in New Issue
Block a user