some minor fixes

This commit is contained in:
Jeffrey Paul 2018-10-01 23:34:19 -07:00
parent 7c8cd402bc
commit 9b4faa3573
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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"