diff options
author | Paul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-08-08 00:24:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 00:24:18 +0300 |
commit | 66d6498ed4fa433fdd397da5ef1470312e539bd6 (patch) | |
tree | b655b18d5107dbd9a76aa14ad2e373bbb64fd2b9 /contrib | |
parent | 4a8d5c5fd405b2de55eb01087467b1d76f9295c3 (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 'contrib')
-rwxr-xr-x | contrib/debian/install_go.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/debian/install_go.sh b/contrib/debian/install_go.sh index 17a3b409e9..629f034a1e 100755 --- a/contrib/debian/install_go.sh +++ b/contrib/debian/install_go.sh @@ -36,7 +36,7 @@ download_go() { 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' @@ -62,7 +62,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}" download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/config.tar.gz" "${tmp}/config.tar.gz" @@ -88,7 +88,10 @@ install_go() { # Install files tar -xf "${tmp}/config.tar.gz" -C "${LIB_DIR}/conf.d/" - mv "${tmp}/$GO_PACKAGE_BASENAME" "${LIBEXEC_DIR}/plugins.d/go.d.plugin" + tar xf "${tmp}/${GO_PACKAGE_BASENAME}" + mv "${GO_PACKAGE_BASENAME/\.tar\.gz/}" "${LIBEXEC_DIR}/plugins.d/go.d.plugin" + + rm -rf "${tmp}" fi return 0 } |