astroport-iptubes/install.sh

49 lines
1.3 KiB
Bash

#!/bin/bash
echo -e "Installing Astroport"
# Install IPFS
ipfs() {
curl -s https://git.p2p.legal/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
}
# Install YGGTorrentScraper
yggts() {
echo -e "${c_yellow}Installing YGGTorrentScraper...$c_"
# [[ -z $(which pip3) ]] && sudo apt install python3-pip
#pip3 install yggtorrentscraper
}
torrengo() {
## Install GO
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz -P /tmp/
sudo tar -C /usr/local -xzf /tmp/go1.13.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.profile
## Install torrengo
go get github.com/juliensalinas/torrengo
go build github.com/juliensalinas/torrengo
go get github.com/juliensalinas/torrengo/ygg
sudo chmod ug+x torrengo
pathTorrengo=$(realpath torrengo)
cd /usr/bin
sudo ln -sf $pathTorrengo .
rm /tmp/go1.13.4.linux-amd64.tar.gz
}
# Check installs
[[ -z $(which ipfs) ]] && ipfs
[[ -z $(pip3 freeze | grep yggtorrentscraper) ]] && sbotc
echo -e "Installation Complete"
exit 0