diff options
Diffstat (limited to 'community/aria2/aria2.initd')
-rw-r--r-- | community/aria2/aria2.initd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/community/aria2/aria2.initd b/community/aria2/aria2.initd index c8e2edcc2f9..7298992d4ba 100644 --- a/community/aria2/aria2.initd +++ b/community/aria2/aria2.initd @@ -29,4 +29,14 @@ start_pre() { local _logfile=$(sed -En 's|^log=([^#]+)|\1|p' "$cfgfile") checkpath -f -m 640 -o "$command_user" "${_logfile:-$logfile}" + + # Session + local _inputfile=$(sed -En 's|^input-file=([^#]+)|\1|p' "$cfgfile") + + if [ "$_inputfile" != "" ]; then + checkpath -f -m 644 -o "$command_user" "$_inputfile" + fi + + # DHT + checkpath -d -m 755 -o "$command_user" "/var/cache/$command_user" } |