astroport/install.sh

55 lines
1.3 KiB
Bash

#!/bin/bash
{
echo "ASTROPORT/ScuttleButt is unmaintained."
echo "PLEASE INSTALL AstrXbian by running"
echo "bash <(wget -qO- https://git.p2p.legal/axiom-team/astrXbian/raw/branch/master/install.sh)"
exit
# Check requirements
sudo apt update
sudo apt install git 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 (now using cesium+/gchange+)
# 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
# LOVEland install
curl -s $gitpath/.install/loveland.sh | bash || exit 1
# Customs install
## Nextcloud
[[ $args =~ nextcloud ]] && cd /home/$USER/.zen/astroport && sudo -E bash .install/nextcloud/install.sh
echo -e "${c_green}Installation complete$c_"
exec bash
}