#!/bin/sh

mkdir /ExportVHosts
cd /ExportVHosts

git clone ssh://git@gitlab.bigstep.com:17734/bigstep_infrastructure/bsi.git bsi.vmware.local
cd bsi.vmware.local
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts

git clone ssh://git@gitlab.bigstep.com:17734/bigstep_infrastructure/bsiadmin.git bsiadmin.vmware.local
cd bsiadmin.vmware.local
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts

git clone ssh://git@gitlab.bigstep.com:17734/bsi-agent/BSIAgent.git MetalCloudAgent
cd MetalCloudAgent
git checkout master
git pull origin master
git submodule update --init --recursive
npm install
cd /ExportVHosts

git clone ssh://git@gitlab.bigstep.com:17734/bigstep-storage/bsa-php.git bsa.bigstep.local
cd bsa.bigstep.local
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts

git clone ssh://git@gitlab.bigstep.com:17734/bigstep_infrastructure/bsi-annex-documentation.git bsi.ExternalDocumentation
cd bsi.ExternalDocumentation
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts

cd bsa.bigstep.local
git rev-parse HEAD 3aeae438f200a4126493cb1f88929d4632a4497c
git submodule update --init --recursive
cd /ExportVHosts
