Fix install

This commit is contained in:
poka 2020-05-20 02:16:53 +02:00
parent 6738ce8ffa
commit a7b91e26ba
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
########################################################################
# this ensures the entire script is downloaded #
{ # this ensures the entire script is downloaded #
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}"
@ -75,7 +75,7 @@ EOF
sudo cp -f /tmp/ipfs.service /etc/systemd/system/
sudo sed -i "s/_USER_/$USER/g" /etc/systemd/system/ipfs.service
sudo systemctl daemon-reload || err "Restart IPFS"
sudo systemctl enable ipfs || err "Enable IPFS daemon"
@ -89,7 +89,7 @@ sudo chown -R $USER:$USER ~/.ipfs || exit 1
###########################################
# ACTIVATE IPFS OPTIONS: #swarm0 INIT
###########################################
### IMPORTANT !!!!!!! IMPORTANT !!!!!!
### IMPORTANT !!!!!!! IMPORTANT !!!!!!
###########################################
# DHT PUBSUB mode
ipfs config Pubsub.Router gossipsub
@ -111,7 +111,7 @@ sudo systemctl start ipfs || err "Start IPFS daemon"
sleep 7
echo "Peers: " && ipfs swarm peers && sleep 1
[[ $(ipfs swarm peers) == "" ]] && err "No peers found in swarm. Please open issue :https://git.p2p.legal/axiom-team/astroport/issues"
echo "Peers: " && ipfs swarm peers && sleep 0.3
[[ -z $(ipfs swarm peers) ]] && err "No peers found in swarm. Please open issue :https://git.p2p.legal/axiom-team/astroport/issues"
# this ensures the entire script is downloaded #
} # this ensures the entire script is downloaded #

View File

@ -18,7 +18,7 @@ echo "${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
curl -s $gitpath/.install/ipfs_alone.sh | bash || exit 1
# Set environment variables
curl -s $gitpath/.install/sys_checkOS.sh noexec | bash || exit 1