add optionnal torrengo install
This commit is contained in:
parent
253bdbc0f4
commit
fcfb8e1cf3
20
install.sh
20
install.sh
|
@ -19,6 +19,26 @@ yggts() {
|
||||||
pip3 install yggtorrentscraper
|
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
|
# Check installs
|
||||||
[[ -z $(which ipfs) ]] && ipfs
|
[[ -z $(which ipfs) ]] && ipfs
|
||||||
[[ -z $(pip3 freeze | grep yggtorrentscraper) ]] && sbotc
|
[[ -z $(pip3 freeze | grep yggtorrentscraper) ]] && sbotc
|
||||||
|
|
Loading…
Reference in New Issue