[Install] Fix ipfs user permissions

This commit is contained in:
poka 2020-05-20 21:22:22 +02:00
parent 0ae43511cf
commit 16d34f08e4
1 changed files with 2 additions and 4 deletions

View File

@ -80,12 +80,10 @@ sudo systemctl daemon-reload || err "Restart IPFS"
sudo systemctl enable ipfs || err "Enable IPFS daemon"
# INIT ipfs
sudo chown -R $USER:$USER ~/.ipfs || exit 1
[[ $isLAN ]] && ipfs init -p lowpower \
|| ipfs init -p server
sudo chown -R $USER:$USER ~/.ipfs || exit 1
###########################################
# ACTIVATE IPFS OPTIONS: #swarm0 INIT
###########################################