[Install] Fix ipfs user permissions
This commit is contained in:
parent
0ae43511cf
commit
16d34f08e4
|
@ -80,18 +80,16 @@ 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
|
||||||
|
sudo chown -R $USER:$USER ~/.ipfs || exit 1
|
||||||
[[ $isLAN ]] && ipfs init -p lowpower \
|
[[ $isLAN ]] && ipfs init -p lowpower \
|
||||||
|| ipfs init -p server
|
|| ipfs init -p server
|
||||||
|
|
||||||
sudo chown -R $USER:$USER ~/.ipfs || exit 1
|
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
# ACTIVATE IPFS OPTIONS: #swarm0 INIT
|
# ACTIVATE IPFS OPTIONS: #swarm0 INIT
|
||||||
###########################################
|
###########################################
|
||||||
### IMPORTANT !!!!!!! IMPORTANT !!!!!!
|
### IMPORTANT !!!!!!! IMPORTANT !!!!!!
|
||||||
###########################################
|
###########################################
|
||||||
# DHT PUBSUB mode
|
# DHT PUBSUB mode
|
||||||
ipfs config Pubsub.Router gossipsub
|
ipfs config Pubsub.Router gossipsub
|
||||||
# MAXSTORAGE = 1/2 available
|
# MAXSTORAGE = 1/2 available
|
||||||
availableDiskSize=$(df -P ~/ | awk 'NR>1{sum+=$4}END{print sum}')
|
availableDiskSize=$(df -P ~/ | awk 'NR>1{sum+=$4}END{print sum}')
|
||||||
|
|
Loading…
Reference in New Issue