1
0
astroport/bootstrap_astroport.sh
2020-03-19 18:34:03 +01:00

20 lines
529 B
Bash
Executable File

#!/bin/bash
# Check if this script is not execute inside astroport folder
[[ $(basename "$PWD") == "astroport" ]] && echo "DO NOT EXECUTE THIS SCRIPT INSIDE ASTROPORT FOLDER!" && exit 1
rm -rf astroport
giturl="http://192.168.9.19:3000"
#giturl="https://git.p2p.legal"
git clone $giturl/axiom-team/astroport.git
cd astroport
sed -i 's/https:\/\/git.p2p.legal/http:\/\/192.168.9.19:3000/g' .gitmodules
git submodule update --init --recursive
git submodule foreach git pull origin master
echo "Astroport ready to go!"
exit 0