IPNS key timeout restore
This commit is contained in:
parent
9f6a59d881
commit
2019c33070
|
@ -150,7 +150,7 @@ done
|
||||||
[[ $DIFF ]] && cp ~/.zen/game/players/$PLAYER/ipfs/moa/.chain ~/.zen/game/players/$PLAYER/ipfs/moa/.chain.$MOATS
|
[[ $DIFF ]] && cp ~/.zen/game/players/$PLAYER/ipfs/moa/.chain ~/.zen/game/players/$PLAYER/ipfs/moa/.chain.$MOATS
|
||||||
|
|
||||||
TW=$(ipfs add -Hq ~/.zen/game/players/$PLAYER/ipfs/moa/index.html | tail -n 1)
|
TW=$(ipfs add -Hq ~/.zen/game/players/$PLAYER/ipfs/moa/index.html | tail -n 1)
|
||||||
ipfs name publish --key=$PLAYER /ipfs/$TW
|
ipfs name publish -t 72h --key=$PLAYER /ipfs/$TW
|
||||||
|
|
||||||
[[ $DIFF ]] && echo $TW > ~/.zen/game/players/$PLAYER/ipfs/moa/.chain
|
[[ $DIFF ]] && echo $TW > ~/.zen/game/players/$PLAYER/ipfs/moa/.chain
|
||||||
echo $MOATS > ~/.zen/game/players/$PLAYER/ipfs/moa/.moats
|
echo $MOATS > ~/.zen/game/players/$PLAYER/ipfs/moa/.moats
|
||||||
|
|
|
@ -36,6 +36,9 @@ do
|
||||||
if [[ ! -s ~/.zen/tmp/work/index.html ]]; then
|
if [[ ! -s ~/.zen/tmp/work/index.html ]]; then
|
||||||
echo "UNAVAILABLE WISH! If you want to remove $W $voeu"
|
echo "UNAVAILABLE WISH! If you want to remove $W $voeu"
|
||||||
echo "ipfs key rm $voeu && rm -Rf ~/.zen/game/world/$voeu"
|
echo "ipfs key rm $voeu && rm -Rf ~/.zen/game/world/$voeu"
|
||||||
|
echo "============================================="
|
||||||
|
echo "ipfs name publish -t 72h /ipfs/$(cat ~/.zen/game/world/$voeu/.chain)"
|
||||||
|
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
## Replace tube links with downloaded video
|
## Replace tube links with downloaded video
|
||||||
|
@ -58,7 +61,7 @@ do
|
||||||
[[ $DIFF ]] && cp ~/.zen/game/world/$voeu/.chain ~/.zen/game/world/$voeu/.chain.$MOATS
|
[[ $DIFF ]] && cp ~/.zen/game/world/$voeu/.chain ~/.zen/game/world/$voeu/.chain.$MOATS
|
||||||
|
|
||||||
IPUSH=$(ipfs add -Hq ~/.zen/game/world/$voeu/index.html | tail -n 1)
|
IPUSH=$(ipfs add -Hq ~/.zen/game/world/$voeu/index.html | tail -n 1)
|
||||||
ipfs name publish --key=${voeu} /ipfs/$IPUSH 2>/dev/null
|
ipfs name publish -t 72h --key=${voeu} /ipfs/$IPUSH 2>/dev/null
|
||||||
|
|
||||||
[[ $DIFF ]] && echo $IPUSH > ~/.zen/game/world/$voeu/.chain
|
[[ $DIFF ]] && echo $IPUSH > ~/.zen/game/world/$voeu/.chain
|
||||||
echo $MOATS > ~/.zen/game/world/$voeu/.moats
|
echo $MOATS > ~/.zen/game/world/$voeu/.moats
|
||||||
|
|
Loading…
Reference in New Issue