1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Improve setup script für Ubuntu systems

* Make sure that we do not have an old go installation around,
   because otherwise it maybe broken by untarring the newer one.
   As documented on https://go.dev/doc/install .
This commit is contained in:
Bernhard Reiter 2023-01-26 11:56:51 +01:00
parent 1d0499ddea
commit 7e9ea2c9ac
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554

View file

@ -11,4 +11,5 @@ apt install -y make bash sed tar git nginx fcgiwrap gnutls-bin
# Install Go from binary distribution # Install Go from binary distribution
latest_go="$(curl https://go.dev/VERSION\?m=text).linux-amd64.tar.gz" latest_go="$(curl https://go.dev/VERSION\?m=text).linux-amd64.tar.gz"
curl -O https://dl.google.com/go/$latest_go curl -O https://dl.google.com/go/$latest_go
rm -rf /usr/local/go # be sure that we do not have an old installation
tar -C /usr/local -xzf $latest_go tar -C /usr/local -xzf $latest_go