From 9b4faa3573510c9becd351443804048edfa7a886 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 1 Oct 2018 23:34:19 -0700 Subject: [PATCH] some minor fixes --- Dockerfile | 2 +- ipfsd.run | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc51ce6..cf0fb93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN \ go get -u github.com/ipfs/ipfs-update && \ /root/go/bin/ipfs-update install latest && \ rm -rf /root/go && \ - adduser --system --group ipfs && \ + adduser --system --group --home /var/lib/ipfs ipfs && \ mkdir /etc/service/sync /etc/service/ipfsd ADD ./sync.run /etc/service/sync/run diff --git a/ipfsd.run b/ipfsd.run index 75f5e54..3ed1d1d 100644 --- a/ipfsd.run +++ b/ipfsd.run @@ -3,7 +3,7 @@ sleep 1 # prevent cpu spike on looping export IPFS="/usr/local/bin/ipfs" -export HOME="/home/ipfs" +export HOME="/var/lib/ipfs" chown ipfs:ipfs $HOME cd $HOME @@ -11,9 +11,10 @@ export IPFS_PATH=/var/lib/ipfs if [[ ! -d $IPFS_PATH ]]; then mkdir -p $IPFS_PATH - chown ipfs:ipfs $IPFS_PATH fi +chown ipfs:ipfs $IPFS_PATH + if [[ ! -e $IPFS_PATH/config ]]; then chpst -u ipfs $IPFS init --profile=badgerds chpst -u ipfs $IPFS config Datastore.StorageMax "4000GB"