Skip to content
Snippets Groups Projects
Commit c5f07794 authored by Henrik Triem's avatar Henrik Triem
Browse files

Add Icinga Go Script

parent 64eaf2c8
No related branches found
No related tags found
No related merge requests found
Pipeline #18493 failed
#!/bin/bash
VERSION_GO="1.16.5"
set -ex
echo "Downloading Go Version ${VERSION_GO}"
curl -LO https://golang.org/dl/go${VERSION_GO}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
echo "Unpacking Go"
sudo tar -C /usr/local -xzf go${VERSION_GO}.linux-amd64.tar.gz
echo "Deleting Go Binary Archive"
sudo rm -rf go${VERSION_GO}.linux-amd64.tar.gz
if [[ ! -e $HOME/.bashrc ]]; then
touch $HOME/.bashrc
fi
echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.bashrc
source $HOME/.bashrc
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