set cluster secret to empty in restart

This commit is contained in:
Wyatt 2017-09-21 19:05:25 -04:00
parent 025709fe7f
commit e533eb74f3

9
docker/cluster-restart.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/bash
# 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