refresh PIN every 12h

This commit is contained in:
fred 2021-09-20 22:02:44 +02:00
parent 1fd00748c1
commit ff2b35dd30
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ for ipnslink in $(ls ~/.zen/PIN/*/IPNSLINK 2>/dev/null | shuf ); do
timestamp=$(date -u +%s%N | cut -b1-13)
STAMPDIFF=$((timestamp - TIMESTAMP))
echo "PIN WAS LAST UPDATED $STAMPDIFF milliseconds AGO"
[ $STAMPDIFF -lt 21600000 ] && continue # 6h = 21600000 ms
[ $STAMPDIFF -lt 43200000 ] && continue # 12h = 43200000 ms
echo "ADD TO IPFS"
NEWIPFS=$(ipfs add -rHq /tmp/${mediakey}/ | tail -n 1)