From b5e04430e40078de2006eaf2be643a9fcea05730 Mon Sep 17 00:00:00 2001 From: poka Date: Fri, 15 May 2020 22:06:21 +0200 Subject: [PATCH] Fix .ipfs owner to good place --- .install/ipfs_alone.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 #