Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (15 sloc) 500 Bytes
#! /usr/bin/env bash
set -e
if [ -n "$IPFS_PATH" ]; then
echo "Using $IPFS_PATH as IPFS repository"
else
echo "You need to set IPFS_PATH environment variable to use this script"
exit 1
fi
# Initialize the repo but ignore if error if it already exists
# This can be the case when we restart a container without stopping/removing it
node src/cli/bin.js init || true
if [ -n "$IPFS_API_HOST" ]; then
sed -i.bak "s/127.0.0.1/$IPFS_API_HOST/g" $IPFS_PATH/config
fi
node src/cli/bin.js daemon
You can’t perform that action at this time.