1
0
Fork 0
astroport/install.sh

40 lines
1002 B
Bash

#!/bin/bash
{
# Check requierments
sudo apt update
sudo apt install curl net-tools -y
gitpath="https://git.p2p.legal/axiom-team/astroport/raw/master"
echo "Add colors ..."
curl -s $gitpath/.install/export_colors.sh | bash || exit 1
[[ -n $(grep ".bash_aliases" ~/.bashrc) ]] && echo ". ~/.bash_aliases" ~/.bashrc
. ~/.bash_aliases
# Get arguments
args="$@"
# IPFS install
echo -e "${c_green}Astroport installer
###
1. IPFS Swarm Layer$c_"
# Full automatic (you trust this git depot)
curl -s $gitpath/.install/ipfs_alone.sh | bash || exit 1
# Set environment variables
curl -s $gitpath/.install/sys_checkOS.sh noexec | bash || exit 1
# SSB install
echo -e "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
curl -s $gitpath/zen/tools/make_G1SSB_secret.sh | bash || exit 1
[[ $args =~ nextcloud ]] && cd /home/$USER/.zen/astroport && sudo -E bash .install/nextcloud/install.sh
echo -e "${c_green}Installation complete$c_"
exec bash
}