28 lines
532 B
Plaintext
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
|