Commit d9eefd04 authored by Bernhard Landauer's avatar Bernhard Landauer

[deployiso] add option for alt storage server

parent 4b334e45
......@@ -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}"
......
......@@ -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'
......
......@@ -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}"
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment