1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00
gocsaf/docs/scripts/prepareUbuntuInstanceForITests.sh
Bernhard Reiter 7e9ea2c9ac
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 .
2023-01-26 11:56:51 +01:00

15 lines
490 B
Bash
Executable file

#!/usr/bin/env bash
set -e
# This script prepares a naked Ubuntu 20.04 LTS amd64
# for the csaf_distribution integration tests
# by installing the required packages.
apt install -y make bash sed tar git nginx fcgiwrap gnutls-bin
# Install Go from binary distribution
latest_go="$(curl https://go.dev/VERSION\?m=text).linux-amd64.tar.gz"
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