diff --git a/.install/ipfs_alone.sh b/.install/ipfs_alone.sh index 671f377..866b5c7 100644 --- a/.install/ipfs_alone.sh +++ b/.install/ipfs_alone.sh @@ -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"