protect ipfs timeout

This commit is contained in:
qo-op 2021-06-16 01:24:02 +02:00
parent 6af6406b2e
commit 9f4b2763f1
1 changed files with 2 additions and 2 deletions

View File

@ -194,9 +194,9 @@ for ipnslink in $(ls ~/.zen/PIN/*/IPNSLINK);
[[ ! $(ipfs key list | grep ${mediakey}) ]] && echo "ERROR MISSING MEDIAKEY" && continue
## GET ACTUAL IPNS .chain VALUE
actual=$(ipfs --timeout 10s cat /ipns/$ipnsid/.chain)
actual=$(ipfs --timeout 12s cat /ipns/$ipnsid/.chain)
## 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"
done