[deployiso] add option for alt storage server

This commit is contained in:
Bernhard Landauer 2018-04-15 15:54:20 +02:00
parent 4b334e4527
commit d9eefd0481
4 changed files with 9 additions and 2 deletions

View file

@ -55,6 +55,7 @@ display_settings(){
msg "REMOTE:"
msg2 "account: %s" "${account}"
msg2 "host: %s" "${host}"
msg2 "alt_storage: %s" "${alt_storage}"
msg "UPLOAD QUEUE:"
run show_profile "${build_list_iso}"

View file

@ -57,12 +57,15 @@
# the server user
# account=[SetUser]
# use alternative storage server (one or the other might be more stable)
# alt_storage=false
# the server project: manjaro|manjaro-community
# determined automatically based on profile if unset
# project="[SetProject]"
# set upload bandwidth limit in kB/s
# limit=100
# limit=
# the torrent tracker urls, comma separated
# tracker_url='udp://mirror.strits.dk:6969'

View file

@ -10,7 +10,8 @@
# GNU General Public License for more details.
connect(){
local storage="@storage.osdn.net:/storage/groups/m/ma/"
[[ ${alt_storage} == true ]] && server="storage-in" || server="storage"
local storage="@${server}.osdn.net:/storage/groups/m/ma/"
echo "${account}${storage}${project}"
}

View file

@ -326,6 +326,8 @@ init_deployiso(){
[[ -z ${account} ]] && account="[SetUser]"
[[ -z ${alt_storage} ]] && alt_storage=false
[[ -z ${tracker_url} ]] && tracker_url='udp://mirror.strits.dk:6969'
[[ -z ${piece_size} ]] && piece_size=21