Skip to content

Commit ee993c5

Browse files
committed
reverted download file
1 parent 13eaa93 commit ee993c5

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

build/windows/download_nrjmx.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
# Gets last version of nrjmx MSI installer with staging support
4+
# Gets last version of nrjmx MSI installer
55

6-
# Set default download base URL (can be overridden with environment variable)
7-
DOWNLOAD_BASE_URL=${DOWNLOAD_BASE_URL:-"http://nr-downloads-ohai-staging.s3-website-us-east-1.amazonaws.com"}
8-
9-
echo "Downloading last version of nrjmx MSI installer from $DOWNLOAD_BASE_URL"
6+
echo "Downlading last version of nrjmx MSI installer"
107
if [[ -z $NRJMX_URL ]]; then
11-
# Use GitHub API to get latest version (this should work regardless of staging/production)
128
NRJMX_VERSION=$(curl --silent "https://api.github.com/repos/newrelic/nrjmx/releases/latest" | grep '"tag_name":' | grep -oE '[0-9.?]+')
139
echo "Using latest nrjmx version $NRJMX_VERSION."
14-
15-
# Construct URL using the base URL
16-
NRJMX_URL=$DOWNLOAD_BASE_URL/infrastructure_agent/binaries/windows/nrjmx/nrjmx-amd64.$NRJMX_VERSION.msi
10+
NRJMX_URL=https://github.com/newrelic/nrjmx/releases/download/v$NRJMX_VERSION/nrjmx-amd64.$NRJMX_VERSION.msi
1711
fi
1812

19-
curl -LSs --fail "$NRJMX_URL" -o "build/package/windows/bundle/nrjmx-amd64.msi"
13+
curl -LSs --fail "$NRJMX_URL" -o "build/package/windows/bundle/nrjmx-amd64.msi"

0 commit comments

Comments
 (0)