ipfs_daemon/setup-ipfs-daemon
2018-02-20 21:32:38 +01:00

28 lines
532 B
Plaintext

## daemon user
#adduser ipfs -nologin -home /var/spool/ipfs/
#GID=`id -g ipfs`
#UID=`id -u ipfs`
## init skript
cp ipfs.initd /etc/init.d/ipfs
#sed -i 's/IPFS_GID=1001/IPFS_GID=$GID/g'
#sed -i 's/IPFS_UID=1001/IPFS_UID=$GID/g'
update-rc.d ipfs defaults
## install ipfs
# wget ipfs_go_{arch}_{vers}.tar.gz
# tar xzf ipfs_go_{arch}_{vers}.tar.gz
# rm ipfs_go_{arch}_{vers}.tar.gz
# ./go-ipfs/install.sh
# chmod 770 `whereis -b ipfs | cut -d ":" -f 1`
# chown ipfs:ipfs `whereis -b ipfs | cut -d ":" -f 1`
service ipfs start