2020-03-18 05:06:01 +01:00
|
|
|
#!/bin/bash
|
2020-03-18 15:49:46 +01:00
|
|
|
|
2020-05-17 19:50:29 +02:00
|
|
|
{
|
2020-12-12 00:56:07 +01:00
|
|
|
# Check requirements
|
2020-05-15 22:02:32 +02:00
|
|
|
sudo apt update
|
2020-12-12 00:56:07 +01:00
|
|
|
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
|
|
|
|
2020-12-12 00:56:07 +01: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 !!
|
2020-12-12 00:56:07 +01:00
|
|
|
# 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 14:08:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-04 00:23:31 +02:00
|
|
|
# Customs install
|
|
|
|
## Nextcloud
|
2020-05-20 22:32:06 +02:00
|
|
|
[[ $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
|
|
|
}
|