diff --git a/.install/ipfs_alone.sh b/.install/ipfs_alone.sh index ce7862e..a7dec67 100644 --- a/.install/ipfs_alone.sh +++ b/.install/ipfs_alone.sh @@ -40,7 +40,6 @@ cd $MY_PATH echo "INSTALL latest ipfs" sudo ipfs-update install latest || err+="Install IPFS" -sudo chown -R $USER:$USER ~/.ipfs 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 @@ -51,8 +50,9 @@ sudo systemctl daemon-reload || err+="Restart IPFS" sudo systemctl enable ipfs || err+="Enable IPFS daemon" # INIT ipfs -ipfs init -p lowpower +ipfs init -p lowpower || exit 1 # ipfs init -p server ## Uncomment for server infrastructure +sudo chown -R $USER:$USER ~/.ipfs || exit 1 # ACTIVATE CONFIG OPTIONS # 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 - - } # this ensures the entire script is downloaded #