File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -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"
107if [[ -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
1711fi
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"
You can’t perform that action at this time.
0 commit comments