#!/bin/sh

mkdir /ExportVHosts
mkdir /ExportVHosts/prod
cd /ExportVHosts/prod

git clone ssh://git@gitlab.bigstep.com:17734/Bigstep_Infrastructure_Production/bsi-prod.git fullmetal.bigstep.com
cd fullmetal.bigstep.com
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts/prod

git clone ssh://git@gitlab.bigstep.com:17734/Bigstep_Infrastructure_Production/bsiadmin-prod.git ctrl.bigstep.com
cd ctrl.bigstep.com
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts/prod

git clone ssh://git@gitlab.bigstep.com:17734/Bigstep_Infrastructure_Production/ordering-prod.git my.bigstep.com
cd my.bigstep.com
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts/prod

git clone ssh://git@gitlab.bigstep.com:17734/Bigstep_Infrastructure_Production/billing-prod.git billing2.bigstep.com
cd billing2.bigstep.com
git checkout master
git pull origin master
git submodule update --init --recursive
cd /ExportVHosts/prod
