init ipfs dir, limit to 4000GB datastore

This commit is contained in:
Jeffrey Paul 2018-10-01 16:47:38 -07:00
parent ec70d3df9d
commit c3fc3ade47
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2

View File

@ -12,7 +12,11 @@ export IPFS_PATH=/var/lib/ipfs
if [[ ! -d $IPFS_PATH ]]; then
mkdir -p $IPFS_PATH
chown ipfs:ipfs $IPFS_PATH
fi
if [[ ! -e $IPFS_PATH/config ]]; then
chpst -u ipfs $IPFS init --profile=badgerds
chpst -u ipfs $IPFS config Datastore.StorageMax "4000GB"
fi
exec chpst -u ipfs $IPFS daemon