From f49fbb18359e9f8847063a086a58eae95ce71610 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 28 May 2022 03:05:51 +0200 Subject: [PATCH] +IPFSNODEID=$(ipfs id --timeout=1s | jq -r .ID) --- cron_MINUTE.sh | 2 +- zen/gchange_INIT.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 689210a..8c81734 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -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 diff --git a/zen/gchange_INIT.sh b/zen/gchange_INIT.sh index 2747034..51f1940 100755 --- a/zen/gchange_INIT.sh +++ b/zen/gchange_INIT.sh @@ -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')