forked from mirrored-repos/manjaro-tools
[deployiso] add option for alt storage server
This commit is contained in:
parent
4b334e4527
commit
d9eefd0481
4 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue