From fb91089c02e61498cacbf062fcccccdcb77ae07f Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 19 Mar 2020 22:16:12 +0100 Subject: [PATCH] add optionnal torrengo install --- install.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/install.sh b/install.sh index 07a2ecd..e30a9f3 100644 --- a/install.sh +++ b/install.sh @@ -19,6 +19,26 @@ yggts() { 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