diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index b5c1a59..ef7a602 --- a/install.sh +++ b/install.sh @@ -6,23 +6,31 @@ # Git: https://git.p2p.legal/axiom-team/astroport ################################################################################ -echo -e "Installing Astroport" +isp2plegal=$(nc -zv -w 1 192.168.9.19 3000 2<&1) +if [[ "$isp2plegal" =~ "(?) open" ]]; then + isp2plegalbool=true + giturl="http://192.168.9.19:3000" +else + isp2plegalbool=false + giturl="https://git.p2p.legal" +fi + +echo -e "Installing IPTubes" # Install IPFS ipfs() { - curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs.sh | bash -s ipfs + curl -s $giturl/axiom-team/astroport/raw/master/.install/ipfs.sh | bash -s ipfs } # Install ScuttleButt sbotc() { - curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/scuttlebutt.sh | bash -s scuttlebutt + curl -s $giturl/axiom-team/astroport/raw/master/.install/scuttlebutt.sh | bash -s scuttlebutt } -# Install YGGTorrentScraper -yggts() { - echo -e "${c_yellow}Installing YGGTorrentScraper...$c_" - # [[ -z $(which pip3) ]] && sudo apt install python3-pip - #pip3 install yggtorrentscraper +# Install Transmission +transmisison() { + echo -e "${c_yellow}Installing Transmision...$c_" + sudo apt install transmission-daemon --install-suggests } torrengo() { @@ -46,8 +54,9 @@ torrengo() { } # Check installs -[[ -z $(which ipfs) ]] && ipfs -[[ -z $(pip3 freeze | grep yggtorrentscraper) ]] && sbotc +[[ -z $(which ipfs) ]] && ipfs +[[ -z $(which sbotc) ]] && sbotc +[[ -z $(which transmission-daemon) ]] && transmission echo -e "Installation Complete"