Pulling in secret awareness

This commit is contained in:
Wyatt 2017-10-10 15:15:56 -04:00
commit 5924219281
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# Restart the cluster process
sleep 2
while true; do
export CLUSTER_SECRET=""
pgrep ipfs-cluster-service || ipfs-cluster-service -f init; echo "CLUSTER RESTARTED"; ipfs-cluster-service --debug &
sleep 10
done

View File

@ -41,6 +41,7 @@ ipfs-cluster-service --version
if [ -e "$IPFS_CLUSTER_PATH/service.json" ]; then
echo "Found IPFS cluster configuration at $IPFS_CLUSTER_PATH"
else
export CLUSTER_SECRET=""
ipfs-cluster-service init
sed -i 's/127\.0\.0\.1\/tcp\/9094/0.0.0.0\/tcp\/9094/' "$IPFS_CLUSTER_PATH/service.json"
sed -i 's/127\.0\.0\.1\/tcp\/9095/0.0.0.0\/tcp\/9095/' "$IPFS_CLUSTER_PATH/service.json"