backup .chain.$MOATS
This commit is contained in:
parent
5b8ec14b5c
commit
45a3fce3da
|
@ -46,7 +46,7 @@ for PLAYER in $(ls ~/.zen/game/players/); do
|
|||
fi
|
||||
|
||||
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
||||
[[ $DIFF ]] && cp ~/.zen/game/players/$PLAYER/ipfs/moa/.chain ~/.zen/game/players/$PLAYER/ipfs/moa/.chain.old
|
||||
[[ $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)
|
||||
ipfs name publish --key=$PLAYER /ipfs/$TW
|
||||
|
|
|
@ -55,7 +55,7 @@ do
|
|||
|
||||
# RECORDING BLOCKCHAIN TIC
|
||||
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
|
||||
[[ $DIFF ]] && cp ~/.zen/game/world/$voeu/.chain ~/.zen/game/world/$voeu/.chain.old
|
||||
[[ $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)
|
||||
ipfs name publish --key=${voeu} /ipfs/$IPUSH 2>/dev/null
|
||||
|
|
Loading…
Reference in New Issue