+IPFSNODEID=$(ipfs id --timeout=1s | jq -r .ID)

This commit is contained in:
fred 2022-05-28 03:05:51 +02:00
parent b69bc7c2d4
commit f49fbb1835
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ source $HOME/.profile
#### CONTROL STATION IPFS DAEMON
## timeout is fixing ipfs minimum response time, before considering stuck process
IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID)
IPFSNODEID=$(ipfs id --timeout=1s | jq -r .ID)
howmany=$(cat /tmp/ipfs.timeout)
if [[ ! $IPFSNODEID ]]; then
## wait a howmany timeout before restarting ipfs