Skip to content
Snippets Groups Projects
Commit a5637b57 authored by Noah Hilverling's avatar Noah Hilverling
Browse files

icinga-provide-go: Just provide the "go" binary in "/usr/local/bin"

parent d859cd25
No related branches found
No related tags found
No related merge requests found
Pipeline #18567 passed
......@@ -7,15 +7,14 @@ set -ex
echo "Downloading Go Version ${VERSION_GO}"
curl -LO https://golang.org/dl/go${VERSION_GO}.linux-amd64.tar.gz
rm -rf /usr/local/go
echo "Unpacking Go"
tar -C /usr/local -xzf go${VERSION_GO}.linux-amd64.tar.gz
tar -C /tmp -xzf go${VERSION_GO}.linux-amd64.tar.gz
echo "Moving Go Binary"
mv /tmp/go/bin/go /usr/local/bin
echo "Deleting Go Binary Archive"
rm -rf go${VERSION_GO}.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
# shellcheck disable=SC1091
source /etc/profile
echo "Deleting temporary files"
rm -rf /tmp/go/
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