fix torrent seed url

This commit is contained in:
Bernhard Landauer 2018-04-15 11:37:02 +02:00
parent 1f00082bb6
commit e6ae6aaa3f

View file

@ -27,7 +27,7 @@ make_torrent(){
if [[ -n $(find ${src_dir} -type f -name "*.iso") ]]; then
for iso in $(ls ${src_dir}/*.iso);do
local seed=${host}/projects/${project}/storage/${profile}/${iso##*/}
local seed=${host}/projects/${project}/storage/${profile}/${dist_release}/${iso##*/}
local mktorrent_args=(-c "${torrent_meta}" -p -l ${piece_size} -a ${tracker_url} -w $(gen_webseed ${seed}))
${verbose} && mktorrent_args+=(-v)
msg2 "Creating (%s) ..." "${iso##*/}.torrent"