some minor fixes
This commit is contained in:
parent
7c8cd402bc
commit
9b4faa3573
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user