github.com/kotalco/kotal@v0.3.0/controllers/ipfs/init_ipfs_cluster_config.sh (about) 1 #!/bin/sh 2 3 set -e 4 5 if [ -e $IPFS_CLUSTER_PATH/service.json ] 6 then 7 echo "ipfs cluster config has already been initialized" 8 else 9 echo "initializing ipfs cluster config" 10 ipfs-cluster-service init --consensus $IPFS_CLUSTER_CONSENSUS 11 fi