astroport/install.sh

55 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2020-03-18 05:06:01 +01:00
#!/bin/bash
2020-05-17 19:50:29 +02:00
{
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
2020-05-15 22:02:32 +02:00
sudo apt update
sudo apt install git curl net-tools -y
2020-03-18 05:06:01 +01:00
2020-05-19 20:43:35 +02:00
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
2020-05-20 02:10:50 +02:00
. ~/.bash_aliases
2020-05-19 20:43:35 +02:00
2020-05-20 21:09:22 +02:00
# Get arguments
args="$@"
2020-05-20 02:01:24 +02:00
# IPFS install
2020-05-20 02:56:59 +02:00
echo -e "${c_green}Astroport installer
2020-05-15 22:02:32 +02:00
###
1. IPFS Swarm Layer$c_"
# Full automatic (you trust this git depot)
2020-05-20 02:16:53 +02:00
curl -s $gitpath/.install/ipfs_alone.sh | bash || exit 1
2020-05-19 20:43:35 +02:00
# Set environment variables
curl -s $gitpath/.install/sys_checkOS.sh noexec | bash || exit 1
2020-05-06 17:32:52 +02:00
# SSB install (now using cesium+/gchange+)
# echo -e "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
2020-05-15 22:02:32 +02:00
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
# curl -s $gitpath/zen/tools/make_G1SSB_secret.sh | bash || exit 1
2020-03-18 05:06:01 +01:00
2020-06-04 00:23:31 +02:00
# LOVEland install
curl -s $gitpath/.install/loveland.sh | bash || exit 1
2020-06-04 00:23:31 +02:00
# Customs install
## Nextcloud
[[ $args =~ nextcloud ]] && cd /home/$USER/.zen/astroport && sudo -E bash .install/nextcloud/install.sh
2020-05-20 21:09:22 +02:00
2020-05-20 02:56:59 +02:00
echo -e "${c_green}Installation complete$c_"
2020-05-19 20:43:35 +02:00
exec bash
2020-05-17 19:50:29 +02:00
}