+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

View File

@ -41,7 +41,7 @@ cat ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
# ADD GCHANGE+ informations
########################################################################
GCHANGE="https://data.gchange.fr"
echo"## GET LATEST GCHANGE PROFILE"
echo "## GET LATEST GCHANGE PROFILE"
curl -s ${GCHANGE}/user/profile/${G1PUB} > ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange.json
Gtitle=$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange.json | jq -r '._source.title')