start_ipfs 292 B

1234567891011121314151617
  1. #!/bin/sh
  2. set -e
  3. export IPFS_PATH=/home/ipfs/.ipfs
  4. ipfs version
  5. if [ -e "$IPFS_PATH/config" ]; then
  6. echo "Found IPFS fs-repo at $IPFS_PATH"
  7. else
  8. ipfs init
  9. ipfs config --json Experimental.FilestoreEnabled true
  10. ipfs bootstrap rm --all
  11. fi
  12. exec ipfs daemon --enable-pubsub-experiment