diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-07-14 15:28:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 15:28:15 +0300 |
commit | ee5e47460c59aeaef3fb9ee5f1d52b212bc1383e (patch) | |
tree | 64b9a8357c2e64ebbb8f25d79f101648adc8239c /packaging | |
parent | 748de8de2d9aa7f360e70fbc002c2083ebcea217 (diff) |
packaging: fix arch detection in update_static (#15396)
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/installer/netdata-updater.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/installer/netdata-updater.sh b/packaging/installer/netdata-updater.sh index 1b13e5fcb7..e76a9c6620 100755 --- a/packaging/installer/netdata-updater.sh +++ b/packaging/installer/netdata-updater.sh @@ -678,7 +678,8 @@ update_static() { cd "${ndtmpdir}" || fatal "Failed to change current working directory to ${ndtmpdir}" U0019 if update_available; then - sysarch="$(uname -m)" + sysarch="${PREBUILT_ARCH}" + [ -z "$sysarch" ] && sysarch="$(uname -m)" download "${NETDATA_TARBALL_CHECKSUM_URL}" "${ndtmpdir}/sha256sum.txt" download "${NETDATA_TARBALL_URL}" "${ndtmpdir}/netdata-${sysarch}-latest.gz.run" if ! grep "netdata-${sysarch}-latest.gz.run" "${ndtmpdir}/sha256sum.txt" | safe_sha256sum -c - > /dev/null 2>&1; then |