Fix ipfs install, add TODO
This commit is contained in:
parent
5b3c2604d0
commit
934abcaecb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue