diff --git a/rootfs/usr/local/share/template-files/config/aria2/aria-ng.config.js b/rootfs/usr/local/share/template-files/config/aria2/aria-ng.config.js index d6f96f7..e1bcb4a 100755 --- a/rootfs/usr/local/share/template-files/config/aria2/aria-ng.config.js +++ b/rootfs/usr/local/share/template-files/config/aria2/aria-ng.config.js @@ -2161,7 +2161,7 @@ type: 'option', options: ['debug', 'info', 'notice', 'warn', 'error'], readonly: !0, - defaultValue: 'warn', + defaultValue: 'error', }, 'content-disposition-default-utf8': { since: '1.31.0', diff --git a/rootfs/usr/local/share/template-files/config/aria2/aria2.conf b/rootfs/usr/local/share/template-files/config/aria2/aria2.conf index 9219442..c02c116 100644 --- a/rootfs/usr/local/share/template-files/config/aria2/aria2.conf +++ b/rootfs/usr/local/share/template-files/config/aria2/aria2.conf @@ -18,7 +18,9 @@ max-download-limit=0 max-overall-upload-limit=0 max-upload-limit=0 file-allocation=prealloc -console-log-level=warn +console-log-level=error save-session-interval=10 max-upload-limit=0 bt-tracker=udp://62.138.0.158:6969/announce,udp://188.241.58.209:6969/announce,udp://151.80.120.112:2710/announce,udp://151.80.120.114:2710/announce,udp://93.158.213.92:1337/announce,udp://185.19.107.254:80/announce,udp://185.225.17.100:1337/announce,udp://208.83.20.20:6969/announce,udp://5.206.19.247:6969/announce,udp://37.235.174.46:2710/announce,udp://142.44.243.4:1337/announce,udp://195.154.52.99:80/announce,udp://54.37.235.149:6969/announce,udp://212.1.226.176:2710/announce,udp://89.234.156.205:451/announce,udp://159.100.245.181:6969/announce,udp://45.56.74.11:6969/announce,udp://51.15.226.113:6969/announce,udp://176.113.71.19:6961/announce,udp://51.15.40.114:80/announce +on-download-error=/config/aria2/scripts/post-hook.sh +on-download-complete=/config/aria2/scripts/post-hook.sh diff --git a/rootfs/usr/local/share/template-files/config/aria2/scripts/post-hook.sh b/rootfs/usr/local/share/template-files/config/aria2/scripts/post-hook.sh new file mode 100755 index 0000000..8e69fc4 --- /dev/null +++ b/rootfs/usr/local/share/template-files/config/aria2/scripts/post-hook.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +##@Version : 202210191942-git +# @@Author : Jason Hempstead +# @@Contact : git-admin@casjaysdev.com +# @@License : LICENSE.md +# @@ReadME : post-hook.sh --help +# @@Copyright : Copyright: (c) 2022 Jason Hempstead, Casjays Developments +# @@Created : Wednesday, Oct 19, 2022 19:42 EDT +# @@File : post-hook.sh +# @@Description : post script +# @@Changelog : newScript +# @@TODO : Refactor code +# @@Other : +# @@Resource : https://aria2.github.io/manual/en/html/aria2c.html#event-hook +# @@Terminal App : no +# @@sudo/root : no +# @@Template : bash/system +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +set -eu + +echo "[INFO] $(date -u +'%Y-%m-%dT%H:%M:%SZ') Aria2 hook triggered with parameters: GID [$1], Files Count: [$2], Files Path: [$3]"