it's IPFS_PATH not IPFS_DIR
This commit is contained in:
parent
dcf4107278
commit
4ec63ac2ef
@ -7,11 +7,11 @@ export HOME="/home/ipfs"
|
|||||||
chown ipfs:ipfs $HOME
|
chown ipfs:ipfs $HOME
|
||||||
cd $HOME
|
cd $HOME
|
||||||
|
|
||||||
export IPFS_DIR=/var/lib/ipfs
|
export IPFS_PATH=/var/lib/ipfs
|
||||||
|
|
||||||
if [[ ! -d $IPFS_DIR ]]; then
|
if [[ ! -d $IPFS_PATH ]]; then
|
||||||
mkdir -p $IPFS_DIR
|
mkdir -p $IPFS_PATH
|
||||||
chown ipfs:ipfs $IPFS_DIR
|
chown ipfs:ipfs $IPFS_PATH
|
||||||
chpst -u ipfs $IPFS init
|
chpst -u ipfs $IPFS init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
2
sync.run
2
sync.run
@ -20,7 +20,7 @@
|
|||||||
sleep 1 # prevent cpu spike on looping
|
sleep 1 # prevent cpu spike on looping
|
||||||
|
|
||||||
export MIRROR_DIR=/var/lib/ubuntumirror
|
export MIRROR_DIR=/var/lib/ubuntumirror
|
||||||
export IPFS_DIR=/var/lib/ipfs
|
export IPFS_PATH=/var/lib/ipfs
|
||||||
|
|
||||||
|
|
||||||
if [[ ! -d $MIRROR_DIR ]]; then
|
if [[ ! -d $MIRROR_DIR ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user