Change boostrap to git-install and install git if not installed

This commit is contained in:
poka 2020-03-19 19:41:47 +01:00
parent 465ae47d3e
commit a8dfaf6af8
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ It's using:
## Installation
```
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/bootstrap_astroport.sh | bash && cd astroport
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/git-install.sh | bash && cd astroport
```
**WARNING: This is an early stage develepement, use it with great care!**

View File

@ -4,6 +4,8 @@
[[ $(basename "$PWD") == "astroport" ]] && echo "DO NOT EXECUTE THIS SCRIPT INSIDE ASTROPORT FOLDER!" && exit 1
[[ -d astroport ]] && rm -rf astroport && echo "astroport folder has been deleted."
[[ -z $(which git) ]] && echo "installation de git..." && sudo apt install git
isp2plegal=$(nc -zv -w 1 192.168.9.19 3000 2<&1)
if [[ "$isp2plegal" =~ "(?) open" ]]; then
isp2plegalbool=true