forked from axiom-team/astroport
Fix .ipfs owner to good place
This commit is contained in:
parent
ec8586cc8f
commit
b5e04430e4
|
@ -40,7 +40,6 @@ cd $MY_PATH
|
||||||
|
|
||||||
echo "INSTALL latest ipfs"
|
echo "INSTALL latest ipfs"
|
||||||
sudo ipfs-update install latest || err+="Install IPFS"
|
sudo ipfs-update install latest || err+="Install IPFS"
|
||||||
sudo chown -R $USER:$USER ~/.ipfs
|
|
||||||
|
|
||||||
echo "CREATE SYSTEMD ipfs SERVICE"
|
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
|
||||||
|
@ -51,8 +50,9 @@ sudo systemctl daemon-reload || err+="Restart IPFS"
|
||||||
sudo systemctl enable ipfs || err+="Enable IPFS daemon"
|
sudo systemctl enable ipfs || err+="Enable IPFS daemon"
|
||||||
|
|
||||||
# INIT ipfs
|
# INIT ipfs
|
||||||
ipfs init -p lowpower
|
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
|
||||||
|
|
||||||
# ACTIVATE CONFIG OPTIONS
|
# ACTIVATE CONFIG OPTIONS
|
||||||
# PUBSUB
|
# PUBSUB
|
||||||
|
@ -74,6 +74,4 @@ sudo systemctl restart ipfs || err+="Restart IPFS daemon"
|
||||||
|
|
||||||
[[ ! $(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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} # this ensures the entire script is downloaded #
|
} # this ensures the entire script is downloaded #
|
||||||
|
|
Loading…
Reference in New Issue