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
|
# upgrading packages against advice of phusion
|
||||||
RUN apt upgrade -y
|
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 go get -u github.com/ipfs/ipfs-update
|
||||||
RUN /root/go/bin/ipfs-update install latest
|
RUN /root/go/bin/ipfs-update install latest
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
export IPFS="/usr/local/bin/ipfs"
|
export IPFS="/usr/local/bin/ipfs"
|
||||||
export HOME="/home/ipfs"
|
export HOME="/home/ipfs"
|
||||||
|
|
||||||
|
chown ipfs:ipfs $HOME
|
||||||
|
|
||||||
cd $HOME
|
cd $HOME
|
||||||
|
|
||||||
|
if [[ ! -d $HOME/.ipfs ]]; then
|
||||||
|
chpst -u ipfs $IPFS init
|
||||||
|
fi
|
||||||
|
|
||||||
exec chpst -u ipfs $IPFS daemon
|
exec chpst -u ipfs $IPFS daemon
|
||||||
|
|
2
sync.run
2
sync.run
|
@ -17,6 +17,8 @@
|
||||||
# Make a full sync of an Ubuntu mirror.
|
# Make a full sync of an Ubuntu mirror.
|
||||||
# This currently requires more than 1TB of storage space and takes a long time.
|
# This currently requires more than 1TB of storage space and takes a long time.
|
||||||
|
|
||||||
|
chown ipfs:ipfs /mirror
|
||||||
|
|
||||||
chpst -u ipfs /bin/bash << '__EOF__'
|
chpst -u ipfs /bin/bash << '__EOF__'
|
||||||
|
|
||||||
export IPFS=/usr/local/bin/ipfs
|
export IPFS=/usr/local/bin/ipfs
|
||||||
|
|
Loading…
Reference in New Issue