fixed #9; tweaked aria2 settings(including disabling certificate check);added aria2 event hooks;other minor changes;

This commit is contained in:
huangjx
2021-10-04 17:29:12 +08:00
parent 2c59da7cbb
commit b8b4d34b38
13 changed files with 145 additions and 81 deletions

7
hooks/completeHook.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
php=$(which php)
dir=$(dirname "$0")
script="${dir}/../../../occ"
#$php "${dir}/run.php" aria2 start $1 $2 $3
$php $script aria2 complete $1 $2 $3

7
hooks/errorHook.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
php=$(which php)
dir=$(dirname "$0")
script="${dir}/../../../occ"
#$php "${dir}/run.php" aria2 start $1 $2 $3
$php $script aria2 error $1 $2 $3

7
hooks/startHook.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
php=$(which php)
dir=$(dirname "$0")
script="${dir}/../../../occ"
#$php "${dir}/run.php" aria2 start $1 $2 $3
$php $script aria2 start $1 $2 $3