Skip to content
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"
echo "You need to set IPFS_PATH environment variable to use this script"
exit 1
# 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/$IPFS_API_HOST/g" $IPFS_PATH/config
node src/cli/bin.js daemon
You can’t perform that action at this time.