diff --git a/.install/ipfs_alone.sh b/.install/ipfs_alone.sh index 7d1433c..c4f5a36 100644 --- a/.install/ipfs_alone.sh +++ b/.install/ipfs_alone.sh @@ -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 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 daemon-reload || err+="Error to refresh system.d startup" sudo systemctl enable ipfs || err+="Enable IPFS daemon" # INIT ipfs ipfs init -p lowpower || exit 1 # 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 # PUBSUB @@ -66,12 +66,14 @@ ipfs config --json Experimental.Libp2pStreamMounting true ######### UPDATE BOOTSTRAP LIST ########### 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 /ip6/fd42:feed:feed:feed::1/tcp/4001/p2p/Qmb6Gyy3KFWTxWh4v6fBeh5ANxAF6YAahWQtokmsNsqGda 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 [[ ! $(ipfs swarm peers) ]] && echo "${c_red}No peers found in swarm. Please open issue :https://git.p2p.legal/axiom-team/astroport/issues" && exit 1