Compare commits
3 Commits
master
...
dev-instal
Author | SHA1 | Date |
---|---|---|
poka | fdac15a17e | |
poka | 934abcaecb | |
poka | 5b3c2604d0 |
|
@ -1,2 +1,2 @@
|
||||||
.profile
|
|
||||||
zen/tools/scraping/transiscope/transiscope.json
|
zen/tools/scraping/transiscope/transiscope.json
|
||||||
|
stat-install.log
|
||||||
|
|
|
@ -45,14 +45,14 @@ echo "CREATE SYSTEMD ipfs SERVICE"
|
||||||
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/templates/ipfs/ipfs.service -o /tmp/ipfs.service
|
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/templates/ipfs/ipfs.service -o /tmp/ipfs.service
|
||||||
sudo cp -f /tmp/ipfs.service /etc/systemd/system/
|
sudo cp -f /tmp/ipfs.service /etc/systemd/system/
|
||||||
sudo sed -i "s/_USER/$USER/g" /etc/systemd/system/ipfs.service
|
sudo sed -i "s/_USER/$USER/g" /etc/systemd/system/ipfs.service
|
||||||
|
|
||||||
sudo systemctl daemon-reload || err+="Restart IPFS"
|
sudo systemctl daemon-reload || err+="Error to refresh system.d startup"
|
||||||
sudo systemctl enable ipfs || err+="Enable IPFS daemon"
|
sudo systemctl enable ipfs || err+="Enable IPFS daemon"
|
||||||
|
|
||||||
# INIT ipfs
|
# INIT ipfs
|
||||||
ipfs init -p lowpower || exit 1
|
ipfs init -p lowpower || exit 1
|
||||||
# ipfs init -p server ## Uncomment for server infrastructure
|
# ipfs init -p server ## Uncomment for server infrastructure
|
||||||
sudo chown -R $USER:$USER ~/.ipfs || exit 1
|
#sudo chown -R $USER:$USER ~/.ipfs || exit 1
|
||||||
|
|
||||||
# ACTIVATE CONFIG OPTIONS
|
# ACTIVATE CONFIG OPTIONS
|
||||||
# PUBSUB
|
# PUBSUB
|
||||||
|
@ -66,12 +66,14 @@ ipfs config --json Experimental.Libp2pStreamMounting true
|
||||||
|
|
||||||
######### UPDATE BOOTSTRAP LIST ###########
|
######### UPDATE BOOTSTRAP LIST ###########
|
||||||
ipfs bootstrap rm --all
|
ipfs bootstrap rm --all
|
||||||
ipfs bootstrap add /dnsaddr/rec.copylaradio.com/tcp/4001/ipfs/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
|
ipfs bootstrap add /dnsaddr/oasis.astroport.com/tcp/4001/ipfs/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
|
||||||
ipfs bootstrap add /ip4/51.15.166.54/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
|
ipfs bootstrap add /ip4/51.15.166.54/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
|
||||||
ipfs bootstrap add /ip6/fd42:feed:feed:feed::1/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
|
ipfs bootstrap add /ip6/fd42:feed:feed:feed::1/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda
|
||||||
|
|
||||||
sudo systemctl restart ipfs || err+="Restart IPFS daemon"
|
sudo systemctl restart ipfs || err+="Restart IPFS daemon"
|
||||||
|
|
||||||
|
echo "Wait 10s for getting peers"
|
||||||
|
# TODO: Add while checking for getting peers, timeout 20s (@poka)
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
[[ ! $(ipfs swarm peers) ]] && echo "${c_red}No peers found in swarm. Please open issue :https://git.p2p.legal/axiom-team/astroport/issues" && exit 1
|
[[ ! $(ipfs swarm peers) ]] && echo "${c_red}No peers found in swarm. Please open issue :https://git.p2p.legal/axiom-team/astroport/issues" && exit 1
|
||||||
|
|
13
install.sh
13
install.sh
|
@ -1,18 +1,23 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
log="stat-install.log"
|
||||||
|
|
||||||
# Check requierments
|
# Check requierments
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install curl net-tools -y
|
sudo apt install curl net-tools -y
|
||||||
|
|
||||||
echo "${c_green}Astroport installer
|
echo "${c_green}Astroport installer
|
||||||
###
|
###
|
||||||
1. IPFS Swarm Layer$c_"
|
1. IPFS Swarm Layer$c_" | tee -a $log
|
||||||
# Full automatic (you trust this git depot)
|
# Full automatic (you trust this git depot)
|
||||||
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh | bash || exit 1
|
#curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh | bash | tee -a $log || exit 1
|
||||||
|
.install/ipfs_alone.sh | tee -a $log || exit 1
|
||||||
|
|
||||||
echo "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
|
echo "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
|
||||||
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
|
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
|
||||||
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/make_G1SSB_secret.sh | bash || exit 1
|
#curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/zen/tools/make_G1SSB_secret.sh | bash | tee -a $log || exit 1
|
||||||
|
./zen/tools/make_G1SSB_secret.sh | tee -a $log || exit 1
|
||||||
|
|
||||||
echo "${c_green}Installation complete$c_"
|
echo "${c_green}Installation complete$c_" | tee -a $log
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
server {
|
server {
|
||||||
|
|
||||||
listen 80;
|
listen 10010;
|
||||||
listen [::]:80;
|
|
||||||
|
|
||||||
root /var/www/loveland;
|
root /var/www/loveland;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue