File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ function update_script() {
5050 chmod +x /opt/networkoptimizer/publish/NetworkOptimizer.Web
5151 mkdir -p /opt/networkoptimizer/publish/tools
5252 cd /opt/networkoptimizer/src/uwnspeedtest
53- # UniFi gateways are always arm64, so the gateway binary is built for arm64
5453 CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $STD go build -trimpath -ldflags " -s -w" -o /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-arm64 .
55- # The "Run Test from Server" binary must match the container architecture
5654 SERVER_ARCH=" $( arch_resolve) "
5755 if [[ " $SERVER_ARCH " != " arm64" ]]; then
5856 CGO_ENABLED=0 GOOS=linux GOARCH=" $SERVER_ARCH " $STD go build -trimpath -ldflags " -s -w" -o " /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-${SERVER_ARCH} " .
Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ msg_ok "Built NetworkOptimizer"
4545msg_info " Building Speed Test Binaries"
4646mkdir -p /opt/networkoptimizer/publish/tools
4747cd /opt/networkoptimizer/src/uwnspeedtest
48- # UniFi gateways are always arm64, so the gateway binary is built for arm64
4948CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $STD go build -trimpath -ldflags " -s -w" -o /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-arm64 .
50- # The "Run Test from Server" binary must match the container architecture
5149SERVER_ARCH=" $( arch_resolve) "
5250if [[ " $SERVER_ARCH " != " arm64" ]]; then
5351 CGO_ENABLED=0 GOOS=linux GOARCH=" $SERVER_ARCH " $STD go build -trimpath -ldflags " -s -w" -o " /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-${SERVER_ARCH} " .
You can’t perform that action at this time.
0 commit comments