entrypoint.sh 226 B

1234567891011
  1. #!/bin/sh
  2. if [ ! -e "$IPFS_PATH/config" ]; then
  3. (set -x; ipfs init --profile $IPFS_INIT_PROFILE)
  4. fi
  5. if [ ! -z "$IPFS_BOOTSTRAP_ADD" ]; then
  6. (set -x; ipfs bootstrap add -- $IPFS_BOOTSTRAP_ADD)
  7. fi
  8. (set -x; exec "$@")