diff --git a/zen/ipns_TAG_refresh.sh b/zen/ipns_TAG_refresh.sh index 96a9a83..6a2857b 100755 --- a/zen/ipns_TAG_refresh.sh +++ b/zen/ipns_TAG_refresh.sh @@ -16,11 +16,9 @@ countMErunning=$(ps auxf --sort=+utime | grep -w $ME | grep -v -E 'color=auto|gr ############# '$MY_PATH/$ME' ######################################################################## # ex: ./'$ME' -# SYNC IPFS SWARM PEERS SHARED DATA .12D3KooW**** ########################################################################' ######################################################################## -# ENVIRONEMENT DETECTION + IPFS ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_info ######################################################################## IPFSNODEID=$(ipfs --timeout=20s id -f='\n') [[ ! $IPFSNODEID ]] && echo 'ERROR missing IPFS Node id !! IPFS is not installed !?' && exit 1 @@ -29,7 +27,9 @@ IPFSNODEID=$(ipfs --timeout=20s id -f='\n') G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) ######################################################################## YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1); - +[[ ! $YOU ]] && echo "IPFS NOT RUNNING. EXIT" && exit 1 +######################################################################## +XZUID=$(cat ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid) # echo "## FRIENDS IPFS PINGing" # for g1pub in $(ls -t ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/); do [[ $g1pub ]] && ipfs ping --timeout=3s -n 3 /ipfs/$(~/.zen/astrXbian/zen/tools/g1_to_ipfs.py $g1pub 2>/dev/null) 2>/dev/null; done