start_ipfs 362 B

123456789101112131415161718
  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. ipfs config Addresses.Swarm --json '[ "/ip4/127.0.0.1/tcp/40001" ]'
  12. fi
  13. exec ipfs daemon --enable-pubsub-experiment