+IPFSNODEID=$(ipfs id --timeout=1s | jq -r .ID)
This commit is contained in:
parent
b69bc7c2d4
commit
f49fbb1835
|
@ -20,7 +20,7 @@ source $HOME/.profile
|
||||||
|
|
||||||
#### CONTROL STATION IPFS DAEMON
|
#### CONTROL STATION IPFS DAEMON
|
||||||
## timeout is fixing ipfs minimum response time, before considering stuck process
|
## 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)
|
howmany=$(cat /tmp/ipfs.timeout)
|
||||||
if [[ ! $IPFSNODEID ]]; then
|
if [[ ! $IPFSNODEID ]]; then
|
||||||
## wait a howmany timeout before restarting ipfs
|
## wait a howmany timeout before restarting ipfs
|
||||||
|
|
Loading…
Reference in New Issue