diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-06-20 19:48:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 19:48:05 +0300 |
commit | 428113b20203ce5fb891061db7105dd55e09a6b4 (patch) | |
tree | adef17ccdc7da295f2c9ff0ffc85f8910db45fbd /netdata.spec.in | |
parent | 3cbcaeabab73a88d73182bc0157af599bbc16b0e (diff) |
fix arch detection on i386 (native packages) (#15218)
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index 0b41b75b50..21d2c2905a 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -393,10 +393,11 @@ install_go() { ) if [ -z "${NETDATA_DISABLE_GO+x}" ]; then - echo >&2 "Install go.d.plugin" - ARCH=$(uname -m) + ARCH="%{_arch}" OS=$(uname -s | tr '[:upper:]' '[:lower:]') + echo >&2 "Install go.d.plugin (ARCH=${ARCH}, OS=${OS})" + for index in "${ARCH_MAP[@]}" ; do KEY="${index%%::*}" VALUE="${index##*::}" |