diff options
author | James Mills <prologic@shortcircuit.net.au> | 2020-06-03 00:46:29 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 00:46:29 +1000 |
commit | 57c916530c7ce9b7ca7905bfc06d676d34dd2f76 (patch) | |
tree | 2a6ed8aa7f22988028b46c531442ca4fadd7c9ae /netdata-installer.sh | |
parent | dc3f425a7d2992a8ea3df2c15622e032a37bf512 (diff) |
Fix reliability of kickstart/kickstart-static64 with checksums sometimes failing (#9165)
* Add tool to build the dist and static x864_64 artifacts
* Add support for overriding the URL for installing/updating from nightlies
* Refactor curl/wget usage into less places. Use curl -q and --output and -O options instead of redirecting stdout
* Update md5sum(s) of kickstart/kickstart-static64
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 3eb7b9b47d..71a391db84 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -73,28 +73,8 @@ else source "${NETDATA_SOURCE_DIR}/packaging/installer/functions.sh" || exit 1 fi -download_tarball() { - url="${1}" - dest="${2}" - name="${3}" - opt="${4}" - - if command -v curl > /dev/null 2>&1; then - run curl -sSL --connect-timeout 10 --retry 3 "${url}" > "${dest}" - elif command -v wget > /dev/null 2>&1; then - run wget -T 15 -O - "${url}" > "${dest}" - else - echo >&2 - echo >&2 "Downloading ${name} from '${url}' failed because of missing mandatory packages." - echo >&2 "Either add packages or disable it by issuing '--disable-${opt}' in the installer" - echo >&2 - - run_failed "I need curl or wget to proceed, but neither is available on this system." - fi -} - download_go() { - download_tarball "${1}" "${2}" "go.d plugin" "go" + download_file "${1}" "${2}" "go.d plugin" "go" } # make sure we save all commands we run |