less aggressive ipfs timeout

This commit is contained in:
fred 2023-02-24 23:12:42 +01:00
parent a1bb442f9b
commit 1b24fef56f
1 changed files with 1 additions and 1 deletions

View File

@ -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