2020-03-17 18:25:54 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo -e "Installing Astroport"
|
|
|
|
|
|
|
|
# Install IPFS
|
|
|
|
ipfs() {
|
2020-03-19 22:24:10 +01:00
|
|
|
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs.sh | bash -s ipfs
|
2020-03-17 18:25:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Install ScuttleButt
|
2020-03-19 21:33:13 +01:00
|
|
|
sbotc() {
|
2020-03-19 22:24:10 +01:00
|
|
|
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/scuttlebutt.sh | bash -s scuttlebutt
|
2020-03-17 18:25:54 +01:00
|
|
|
}
|
|
|
|
|
2020-03-19 18:19:28 +01:00
|
|
|
# Install YGGTorrentScraper
|
|
|
|
yggts() {
|
2020-03-19 21:33:13 +01:00
|
|
|
echo -e "${c_yellow}Installing YGGTorrentScraper...$c_"
|
2020-03-20 02:44:22 +01:00
|
|
|
# [[ -z $(which pip3) ]] && sudo apt install python3-pip
|
|
|
|
#pip3 install yggtorrentscraper
|
2020-03-19 18:19:28 +01:00
|
|
|
}
|
|
|
|
|
2020-03-19 22:16:12 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-03-17 18:25:54 +01:00
|
|
|
# Check installs
|
2020-03-19 21:33:13 +01:00
|
|
|
[[ -z $(which ipfs) ]] && ipfs
|
|
|
|
[[ -z $(pip3 freeze | grep yggtorrentscraper) ]] && sbotc
|
2020-03-17 18:25:54 +01:00
|
|
|
|
|
|
|
echo -e "Installation Complete"
|
|
|
|
|
|
|
|
exit 0
|