I have mounted external storage volume at location /mnt/disk1/ I am trying to install .ipfs at this location viz. /mnt/disk1/ipfs
As I set, here is the env variable IPFS_PATH for both the users, ubuntu and root
Both users root and ubuntu are administrators.
When I run command ipfs init with user ubuntu, the command runs well and IPFS is initiated at $IPFS_PATH location.
But the problem is, when I run the same ipfs init command but with SUDO power, the IPFS is installed at usual home directory of root viz. /root/.ipfs irrespective to the IPFS_PATH Following is the screenshot.
Why is there such inconsistency?
Also, I am facing another related issue. I have created a service daemon to keep ipfs service running. Following is the ipfs.service script
But When I start the ipfs.service, I am getting following error.
Here, even though, script is running as user ubuntu and actual executed command at service is ipfs daemon the IPFS service is failing to start.
However, when I run only simple command ipfs daemon as user ubuntu, the daemon is running without any error as expected. Here is screenshot…
Why there is so much inconsistencies here? I am unable to run ipfs. Please help.