From c3fc3ade47c8e0731c313c059b2b535e20db9cb7 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 1 Oct 2018 16:47:38 -0700 Subject: [PATCH] init ipfs dir, limit to 4000GB datastore --- ipfsd.run | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipfsd.run b/ipfsd.run index 32e02fd..75f5e54 100644 --- a/ipfsd.run +++ b/ipfsd.run @@ -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