From 14bc43a5a63bb7682632372874ed0bb4e21fc738 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 12 Nov 2022 15:40:37 +0100 Subject: [PATCH] quicker (astrXbian data protection delayed) --- tools/new_file_in_astroport.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index f13ec5f1..a12ae5a4 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -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"