Skip to content
Snippets Groups Projects
Commit 27ff1180 authored by Alexander A. Klimov's avatar Alexander A. Klimov :sunglasses:
Browse files

Allow running icinga-provide-go $ARCH

as we need Go not only for amd64
parent d2c95af3
No related branches found
No related tags found
1 merge request!4Allow running icinga-provide-go $ARCH
Pipeline #23360 failed
#!/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