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