From 56f0ac5e4349c37d652bbd13eb9524b1658f0f77 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 5 Sep 2021 21:06:39 +0200 Subject: [PATCH] TESSERACT --- zen/ipns_self_publish.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zen/ipns_self_publish.sh b/zen/ipns_self_publish.sh index 7fe2450..10a9e46 100755 --- a/zen/ipns_self_publish.sh +++ b/zen/ipns_self_publish.sh @@ -5,11 +5,12 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" countMErunning=$(ps auxf --sort=+utime | grep -w $ME | grep -v -E 'color=auto|grep' | wc -l) [[ $countMErunning -gt 2 ]] && echo "$ME already running $countMErunning time" && exit 0 - ######################################################################## IPFSNODEID=$(ipfs --timeout=30s id -f='\n') [[ $IPFSNODEID == "" ]] && echo "ipfs TIMEOUT" && exit 1 +######################################################################## +## TESSERACT DOUBLE ACTION ######################################################################## echo "Adding ~/.zen/ipfs to IPFS" MIPFS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1) @@ -21,7 +22,7 @@ then echo $MIPFS > ~/.zen/ipfs/.${IPFSNODEID}/.chain MIPFS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1) NODEIPNS=$(ipfs --timeout=180s name publish --quieter /ipfs/$MIPFS) - echo "$NODEIPNS:TIME:$(cat ~/.zen/ipfs/.${IPFSNODEID}/.timestamp):CHAIN:$(cat ~/.zen/ipfs/.${IPFSNODEID}/.chain)" + echo "$NODEIPNS:TIME:$(cat ~/.zen/ipfs/.${IPFSNODEID}/.timestamp):CHAIN:$(cat ~/.zen/ipfs/.${IPFSNODEID}/.chain)" fi echo "PUBLISHED ~/.zen/ipfs TO http://127.0.0.1:8181/ipns/$IPFSNODEID" ########################################################################