it's IPFS_PATH not IPFS_DIR

This commit is contained in:
Jeffrey Paul 2018-10-01 15:27:41 -07:00
parent dcf4107278
commit 4ec63ac2ef
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
2 changed files with 5 additions and 5 deletions

View File

@ -7,11 +7,11 @@ export HOME="/home/ipfs"
chown ipfs:ipfs $HOME
cd $HOME
export IPFS_DIR=/var/lib/ipfs
export IPFS_PATH=/var/lib/ipfs
if [[ ! -d $IPFS_DIR ]]; then
mkdir -p $IPFS_DIR
chown ipfs:ipfs $IPFS_DIR
if [[ ! -d $IPFS_PATH ]]; then
mkdir -p $IPFS_PATH
chown ipfs:ipfs $IPFS_PATH
chpst -u ipfs $IPFS init
fi

View File

@ -20,7 +20,7 @@
sleep 1 # prevent cpu spike on looping
export MIRROR_DIR=/var/lib/ubuntumirror
export IPFS_DIR=/var/lib/ipfs
export IPFS_PATH=/var/lib/ipfs
if [[ ! -d $MIRROR_DIR ]]; then