ipfs / ipfs-update

An updater tool for Kubo IPFS binary
https://dist.ipfs.tech/#ipfs-update
MIT License
137 stars 60 forks source link

How do i change ipfs-update tmp directory from /tmp/ipfs-updatexxxx to other place ? #101

Closed alzxcv43210 closed 5 years ago

alzxcv43210 commented 5 years ago

Hi All My arm linux installed ipfs, when i try to ipfs-update it told to me ...

xxx:/mnt/md1/admin/ipfs-update# ./ipfs-update --verbose fetch looking up 'latest'

Because my /tmp is tmpfs and just 16M

xxx:/mnt/md1/admin/ipfs-update# df /tmp Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 15912 15908 4 100% /tmp

How do i change ipfs-update temp directory from /tmp to other place ?

Thanks, AL

Stebalien commented 5 years ago

You can set the TMPDIR environment variable to change the default temporary directory (note: this will apply to applications other than IPFS as well).

You should also consider increasing the size of /tmp. A lot of applications are going to have trouble with a 16MiB temporary directory.

alzxcv43210 commented 5 years ago

That solved my problem.

Thanks a lot.