Skip to content
Snippets Groups Projects
Commit 2e015cf3 authored by Julian Brost's avatar Julian Brost :unicorn:
Browse files

Merge branch 'arch' into 'master'

Allow running icinga-provide-go $ARCH

See merge request !4
parents d2c95af3 6945e85b
No related branches found
No related tags found
1 merge request!4Allow running icinga-provide-go $ARCH
Pipeline #23367 passed
#!/bin/bash
VERSION_GO="1.16.5"
ARCH_GO="${1:-amd64}"
set -ex
echo "Downloading Go Version ${VERSION_GO}"
curl -LO https://golang.org/dl/go${VERSION_GO}.linux-amd64.tar.gz
curl -LO "https://golang.org/dl/go${VERSION_GO}.linux-${ARCH_GO}.tar.gz"
rm -rf /usr/local/go
echo "Unpacking Go"
tar -C /usr/local -xzf go${VERSION_GO}.linux-amd64.tar.gz
tar -C /usr/local -xzf "go${VERSION_GO}.linux-${ARCH_GO}.tar.gz"
echo "Deleting Go Binary Archive"
rm -rf go${VERSION_GO}.linux-amd64.tar.gz
rm -rf "go${VERSION_GO}.linux-${ARCH_GO}.tar.gz"
ln -s /usr/local/go/bin/* /usr/local/bin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment