From fdcd8183e5eba1347c4f33caaa1702fddcf0f37d Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Wed, 11 Apr 2018 23:40:23 +0200 Subject: [PATCH] [deployiso] adjust to osdn.net --- bin/deployiso.in | 2 +- lib/util-publish.sh | 6 +++--- lib/util.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/deployiso.in b/bin/deployiso.in index 064b16d..b153306 100644 --- a/bin/deployiso.in +++ b/bin/deployiso.in @@ -23,7 +23,7 @@ show_profile(){ prepare_transfer "$1" info "Profile: [$1]" msg2 "src_dir: ${src_dir}" - msg2 "target_dir: ${target_dir}" + msg2 "target_dir: ${url}/${target_dir}/" } display_settings(){ diff --git a/lib/util-publish.sh b/lib/util-publish.sh index b255514..7f46af2 100644 --- a/lib/util-publish.sh +++ b/lib/util-publish.sh @@ -10,8 +10,8 @@ # GNU General Public License for more details. connect(){ - local home="/home/frs/project" - echo "${account},${project}@frs.${host}:${home}/${project}" + local storage="@storage.osdn.net:/storage/groups/m/ma/" + echo "${account}${storage}${project}" } gen_webseed(){ @@ -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}/project/${project}/${target_dir}/${iso##*/} + local seed=${host}/projects/${project}/storage/${profile}/${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" diff --git a/lib/util.sh b/lib/util.sh index 9a1aae0..3d9c830 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -275,7 +275,7 @@ init_buildiso(){ init_deployiso(){ - host="sourceforge.net" + host="osdn.net" [[ -z ${project} ]] && project="[SetProject]"