From 1b24fef56f7db35ffd913d26b4ff86fdac4e103d Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 24 Feb 2023 23:12:42 +0100 Subject: [PATCH] less aggressive ipfs timeout --- crowdbunker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdbunker.sh b/crowdbunker.sh index 8e221d0..46b38d9 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -33,7 +33,7 @@ MOATS=$(date -u +"%Y%m%d%H%M%S%4N") YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || echo " warning ipfs daemon not running" isLAN=$(hostname -I | awk '{print $1}' | head -n 1 | cut -f3 -d '/' | grep -E "(^127\.)|(^192\.168\.)|(^fd42\:)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/") -IPFSNODEID=$(ipfs id --timeout=1s | jq -r .ID) +IPFSNODEID=$(ipfs id --timeout=12s | jq -r .ID) howmany=$(cat /tmp/ipfsbunk.timeout) if [[ ! $IPFSNODEID ]]; then ## wait a howmany timeout before restarting ipfs