quicker (astrXbian data protection delayed)

This commit is contained in:
fred 2022-11-12 15:40:37 +01:00
parent 6f4cfeb2b4
commit 14bc43a5a6
1 changed files with 2 additions and 3 deletions

View File

@ -360,9 +360,8 @@ NEWIPFS=$(ipfs add -rHq ~/.zen/game/players/$PLAYER/ipfs/.${IPFSNODEID}/KEY/${ME
echo $NEWIPFS > ~/.zen/game/players/$PLAYER/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/.chain
echo "ipfs name publish --quieter --key=${MEDIAKEY} $NEWIPFS"
IPNS=$(ipfs name publish -t 720h --quieter --key="${MEDIAKEY}" $NEWIPFS)
[[ "$IPNS" == "" ]] && \
echo "~~~ PROBLEM ~~~ ipfs name publish --quieter --key=${MEDIAKEY} $NEWIPFS" && \
ipfs name publish -t 720h --quieter --key="${MEDIAKEY}" $NEWIPFS &
IPNS="$(ipfs key list -l | grep -w ${MEDIAKEY} | cut -f 1 -d ' ')"
echo "${MEDIAKEY} : /ipns/$IPNS"