Skip to content

Commit dd0cb8c

Browse files
committed
builder - allow configuration of binary upload host/port for rsync
* uses __upload_host and __upload_port
1 parent 8cfaadd commit dd0cb8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scriptmodules/admin/builder.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ function section_builder() {
6161
}
6262

6363
function upload_builder() {
64-
rsync -av --progress --delay-updates "$__tmpdir/archives/" "retropie@$__binary_host:files/binaries/"
64+
local host="$__upload_host"
65+
[[ -z "$host" ]] && host="$__binary_host"
66+
local port="$__upload_port"
67+
[[ -z "$port" ]] && port=22
68+
rsync -av --progress --delay-updates -e "ssh -p $port" "$__tmpdir/archives/" "retropie@$host:files/binaries/"
6569
}
6670

6771
function clean_archives_builder() {

0 commit comments

Comments
 (0)