aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/windows/set-network-test-server.ps1
blob: 938ef99ab4c29670f37b1d10827881804d43cb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Copyright (C) 2017 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

. "$PSScriptRoot\helpers.ps1"

# This script will set the network test server IP in to hosts file

$n = Get-Content "$PSScriptRoot\..\shared\network_test_server_ip.txt"
$n = $n.Split('=')
New-Variable -Name $n[0] -Value $n[1]

Add-Content -Path C:\Windows\System32\drivers\etc\hosts. -Value "$network_test_server_ip  qt-test-server  qt-test-server.qt-test-net"