This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
aria2/entrypoint.sh

22 lines
482 B
Bash
Raw Normal View History

2019-04-19 19:17:09 +02:00
#!/bin/ash
if ! [ -z $NGINX_LISTEN_SOCKET ]; then
sed -i 's#listen 80#listen unix:/var/run/nginx.sock#' /etc/nginx/conf.d/default.conf
fi
2019-04-19 19:17:09 +02:00
nginx
touch /data/torrents
chown $UID /data/torrents
su-exec $UID aria2c \
2019-04-22 00:56:05 +02:00
--quiet \
2019-04-19 19:17:09 +02:00
--enable-rpc \
--bt-save-metadata \
--bt-load-saved-metadata \
--force-save \
2019-04-22 00:16:45 +02:00
--listen-port=6881-6889 \
2019-04-19 19:17:09 +02:00
--summary-interval=0 \
--seed-ratio=0 \
--dir /data/ \
--save-session /data/torrents \
-i /data/torrents