[install] Try to fix permission for ipfs

This commit is contained in:
poka 2020-05-20 22:14:56 +02:00
parent b8d73a60dc
commit 5348b4f1dd
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ EOF
sudo cp -f /tmp/ipfs.service /etc/systemd/system/
sudo sed -i "s/_USER_/$USER/g" /etc/systemd/system/ipfs.service
[[ -d ~/.ipfs ]] && sudo chown -R $USER:$USER ~/.ipfs
sudo systemctl daemon-reload || err "Restart IPFS"
sudo systemctl enable ipfs || err "Enable IPFS daemon"