Add transmission install and check p2plegal infra

This commit is contained in:
poka 2020-03-20 04:02:36 +01:00
parent 5650a3477b
commit 0f2cf9f36d
1 changed files with 19 additions and 10 deletions

29
install.sh Normal file → Executable file
View File

@ -6,23 +6,31 @@
# Git: https://git.p2p.legal/axiom-team/astroport # 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 # Install IPFS
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 # Install ScuttleButt
sbotc() { 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 # Install Transmission
yggts() { transmisison() {
echo -e "${c_yellow}Installing YGGTorrentScraper...$c_" echo -e "${c_yellow}Installing Transmision...$c_"
# [[ -z $(which pip3) ]] && sudo apt install python3-pip sudo apt install transmission-daemon --install-suggests
#pip3 install yggtorrentscraper
} }
torrengo() { torrengo() {
@ -46,8 +54,9 @@ torrengo() {
} }
# Check installs # Check installs
[[ -z $(which ipfs) ]] && ipfs [[ -z $(which ipfs) ]] && ipfs
[[ -z $(pip3 freeze | grep yggtorrentscraper) ]] && sbotc [[ -z $(which sbotc) ]] && sbotc
[[ -z $(which transmission-daemon) ]] && transmission
echo -e "Installation Complete" echo -e "Installation Complete"