+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
|
||||||
|
|
|
@ -41,7 +41,7 @@ cat ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
||||||
# ADD GCHANGE+ informations
|
# ADD GCHANGE+ informations
|
||||||
########################################################################
|
########################################################################
|
||||||
GCHANGE="https://data.gchange.fr"
|
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
|
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')
|
Gtitle=$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange.json | jq -r '._source.title')
|
||||||
|
|
Loading…
Reference in New Issue