init ipfs dir, limit to 4000GB datastore
This commit is contained in:
parent
ec70d3df9d
commit
c3fc3ade47
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user