protect ipfs timeout
This commit is contained in:
parent
6af6406b2e
commit
9f4b2763f1
|
@ -194,9 +194,9 @@ for ipnslink in $(ls ~/.zen/PIN/*/IPNSLINK);
|
||||||
[[ ! $(ipfs key list | grep ${mediakey}) ]] && echo "ERROR MISSING MEDIAKEY" && continue
|
[[ ! $(ipfs key list | grep ${mediakey}) ]] && echo "ERROR MISSING MEDIAKEY" && continue
|
||||||
|
|
||||||
## GET ACTUAL IPNS .chain VALUE
|
## GET ACTUAL IPNS .chain VALUE
|
||||||
actual=$(ipfs --timeout 10s cat /ipns/$ipnsid/.chain)
|
actual=$(ipfs --timeout 12s cat /ipns/$ipnsid/.chain)
|
||||||
## PUBLISH IT
|
## PUBLISH IT
|
||||||
ipfs --timeout 20s name publish -k ${mediakey} --quieter /ipfs/${actual}
|
[[ $actual ]] && ipfs --timeout 20s name publish -k ${mediakey} --quieter /ipfs/${actual}
|
||||||
echo "REFRESHED https://tube.copylaradio.com/ipns/$ipnsid TO /ipfs/$actual"
|
echo "REFRESHED https://tube.copylaradio.com/ipns/$ipnsid TO /ipfs/$actual"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue