Skip to content

Commit

Permalink
Setting the disk cache through variables
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TERX committed Jan 26, 2020
1 parent 9c25b53 commit d7ca280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions root/etc/services.d/aria2/run
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
[ -n "$RPC_SECRET" ] \
&& SET_RPC_SECRET="--rpc-secret=$RPC_SECRET"

[ -n "$DISK_CACHE" ] \
&& SET_DISK_CACHE="--disk-cache=$DISK_CACHE"

[ "$RCLONE" = "enable" ] \
&& DOWNLOAD_COMPLETE='/config/autoupload.sh'

exec s6-setuidgid p3terx aria2c \
--conf-path=/config/aria2.conf \
$SET_RPC_SECRET \
$SET_DISK_CACHE \
--dir=/downloads \
--rpc-listen-port=6800 \
--listen-port=6888 \
Expand Down

0 comments on commit d7ca280

Please sign in to comment.