Browse Source

getzig.ps1 add temporary dev host

master
Julian Noble 2 weeks ago
parent
commit
45c0e80d5e
  1. 11
      bin/getzig.cmd
  2. 11
      src/scriptapps/getzig.ps1

11
bin/getzig.cmd

@ -944,6 +944,17 @@ if ($mirrors_response.StatusCode -eq 200) {
write-host "host_list: $host_list"
$automation_name = "punkshell+julian@precisium.com.au_target_by_latency"
#temporary dev download source
$ihost = "10.30.30.107"
$imirror = "http://10.30.30.107/jn/punkbin/raw/branch/master/win64/tools"
$itrace = test-netconnection $ihost -Hops 6 -TraceRoute -ErrorAction Ignore
if ((${itrace}.PingSucceeded) -and (${itrace}.TraceRoute.Count -lt 5)) {
$host_list += $ihost
$dict_mirrors[$ihost]["latency"] = 1
$dict_mirrors[$ihost]["uri"] = $mirror
}
$trace = test-netconnection gitea1.intx.com.au -Hops 6 -TraceRoute -ErrorAction Ignore
if ((${trace}.PingSucceeded) -and (${trace}.TraceRoute.Count -lt 5)) {
$dict_mirrors["gitea1.intx.com.au"]["latency"] = 2

11
src/scriptapps/getzig.ps1

@ -110,6 +110,17 @@ if ($mirrors_response.StatusCode -eq 200) {
write-host "host_list: $host_list"
$automation_name = "punkshell+julian@precisium.com.au_target_by_latency"
#temporary dev download source
$ihost = "10.30.30.107"
$imirror = "http://10.30.30.107/jn/punkbin/raw/branch/master/win64/tools"
$itrace = test-netconnection $ihost -Hops 6 -TraceRoute -ErrorAction Ignore
if ((${itrace}.PingSucceeded) -and (${itrace}.TraceRoute.Count -lt 5)) {
$host_list += $ihost
$dict_mirrors[$ihost]["latency"] = 1
$dict_mirrors[$ihost]["uri"] = $mirror
}
$trace = test-netconnection gitea1.intx.com.au -Hops 6 -TraceRoute -ErrorAction Ignore
if ((${trace}.PingSucceeded) -and (${trace}.TraceRoute.Count -lt 5)) {
$dict_mirrors["gitea1.intx.com.au"]["latency"] = 2

Loading…
Cancel
Save