add rsync, fix perms
This commit is contained in:
parent
cb9ec87ffc
commit
43719766d5
|
@ -7,7 +7,7 @@ RUN apt update
|
|||
# upgrading packages against advice of phusion
|
||||
RUN apt upgrade -y
|
||||
|
||||
RUN apt install -y golang git build-essential
|
||||
RUN apt install -y golang git build-essential rsync
|
||||
|
||||
RUN go get -u github.com/ipfs/ipfs-update
|
||||
RUN /root/go/bin/ipfs-update install latest
|
||||
|
|
|
@ -3,6 +3,12 @@
|
|||
export IPFS="/usr/local/bin/ipfs"
|
||||
export HOME="/home/ipfs"
|
||||
|
||||
chown ipfs:ipfs $HOME
|
||||
|
||||
cd $HOME
|
||||
|
||||
if [[ ! -d $HOME/.ipfs ]]; then
|
||||
chpst -u ipfs $IPFS init
|
||||
fi
|
||||
|
||||
exec chpst -u ipfs $IPFS daemon
|
||||
|
|
Loading…
Reference in New Issue