Fix bootstrap

This commit is contained in:
poka 2020-03-19 18:50:37 +01:00
parent 5470dedb9e
commit ff203d9dfe
1 changed files with 2 additions and 3 deletions

View File

@ -2,15 +2,14 @@
# Check if this script is not execute inside astroport folder
[[ $(basename "$PWD") == "astroport" ]] && echo "DO NOT EXECUTE THIS SCRIPT INSIDE ASTROPORT FOLDER!" && exit 1
[[ -d astroport ]] && rm -rf astroport && echo "astroport folder as been deleted."
[[ -d astroport ]] && rm -rf astroport && echo "astroport folder has been deleted."
giturl="http://192.168.9.19:3000"
#giturl="https://git.p2p.legal"
git clone $giturl/axiom-team/astroport.git
cd astroport
[[ $giturl =~ "192" ]] && sed -i "s/https:\/\/git.p2p.legal/$giturl/g" .gitmodules
[[ $giturl =~ "192" ]] && sed -i 's/https:\/\/git.p2p.legal/http:\/\/192.168.9.19:3000/g' .gitmodules && echo "Infra p2p.legal detected, switch remotes submodules"
git submodule update --init --recursive
git submodule foreach git pull origin master