summaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers/vagrant/installer.sh
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2019-10-29 08:46:40 +0100
committerKonrad Bańka <k.banka@samsung.com>2019-10-29 08:46:40 +0100
commitb0e4204b131d51eb8d0d424ab9d74902f99b3a6f (patch)
tree0c8f3543712c0989528af2e718d4f922683fa05e /kud/hosting_providers/vagrant/installer.sh
parentacddbe2e281ebf80d31e7a03646ccfa0a9d6b25b (diff)
Provide gcc on installer host when not present
Issue-ID: MULTICLOUD-900 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Ibacec8deafa5f1fd9ded5822236db730fedddc82
Diffstat (limited to 'kud/hosting_providers/vagrant/installer.sh')
-rwxr-xr-xkud/hosting_providers/vagrant/installer.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh
index 5cc701db..e5138c24 100755
--- a/kud/hosting_providers/vagrant/installer.sh
+++ b/kud/hosting_providers/vagrant/installer.sh
@@ -21,6 +21,11 @@ function _install_go {
version=$(grep "go_version" ${kud_playbooks}/kud-vars.yml | awk -F "'" '{print $2}')
local tarball=go$version.linux-amd64.tar.gz
+ #gcc is required for go apps compilation
+ if ! which gcc; then
+ sudo apt-get install -y gcc
+ fi
+
if $(go version &>/dev/null); then
return
fi