summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-08-08 00:24:18 +0300
committerGitHub <noreply@github.com>2019-08-08 00:24:18 +0300
commit66d6498ed4fa433fdd397da5ef1470312e539bd6 (patch)
treeb655b18d5107dbd9a76aa14ad2e373bbb64fd2b9 /netdata-installer.sh
parent4a8d5c5fd405b2de55eb01087467b1d76f9295c3 (diff)
netdata/packaging: Expect .tar.gz version of go.d plugin (#6590)
* netdata/packaging: Expect .tar.gz version of go.d plugin, after go.d PR248 * netdata/packaging: Checksum comes on the tarball * netdata/packaging: dont mv the file after extraction, just directly extract to destination, its cleaner. Also, make sure you remove the tmp folder * netdata/packaging: bump go.d to v0.8.0 * netdata/packaging: actually fix * netdata/packaging: change the way we extract it, wasnt right after all * netdata/packaging: update go.d checksums
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index a79f41c159..205d115462 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -774,7 +774,7 @@ fi
install_go() {
# When updating this value, ensure correct checksums in packaging/go.d.checksums
- GO_PACKAGE_VERSION="v0.7.0"
+ GO_PACKAGE_VERSION="v0.8.0"
ARCH_MAP=(
'i386::386'
'i686::386'
@@ -800,7 +800,7 @@ install_go() {
fi
done
tmp=$(mktemp -d /tmp/netdata-go-XXXXXX)
- GO_PACKAGE_BASENAME="go.d.plugin-${GO_PACKAGE_VERSION}.${OS}-${ARCH}"
+ GO_PACKAGE_BASENAME="go.d.plugin-${GO_PACKAGE_VERSION}.${OS}-${ARCH}.tar.gz"
download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/${GO_PACKAGE_BASENAME}" "${tmp}/${GO_PACKAGE_BASENAME}"
@@ -833,11 +833,13 @@ install_go() {
run tar -xf "${tmp}/config.tar.gz" -C "${NETDATA_STOCK_CONFIG_DIR}/"
run chown -R "${ROOT_USER}:${NETDATA_GROUP}" "${NETDATA_STOCK_CONFIG_DIR}"
- run mv "${tmp}/$GO_PACKAGE_BASENAME" "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/go.d.plugin"
+ run tar xf "${tmp}/${GO_PACKAGE_BASENAME}"
+ run mv "${GO_PACKAGE_BASENAME/\.tar\.gz/}" "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/go.d.plugin"
if [ "${UID}" -eq 0 ]; then
run chown "root:${NETDATA_GROUP}" "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/go.d.plugin"
fi
run chmod 0750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/go.d.plugin"
+ rm -rf "${tmp}"
fi
return 0
}