From f8dcef26250f4008ef66677fe5cb739c46e2d3a0 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 11 Aug 2021 00:35:42 +0200 Subject: [PATCH] TODO WRITE SEND .ipns.mediakey.encrypt like in ./zen/tools/MEDIAKEY_dunikey_pass_QR.sh or ./zen/tools/autoPINfriends.sh --- actions/view_count.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actions/view_count.sh b/actions/view_count.sh index f6425ec..a76eeb5 100755 --- a/actions/view_count.sh +++ b/actions/view_count.sh @@ -20,7 +20,7 @@ ipfs --timeout=10s get --output="$tempdir" /ipns/$MEDIAKEYIPNS [[ ! -d ./$G1PUB ]] && mkdir $G1PUB ## DO I OWN THE KEY, OR SHOUD I REQUEST IT -mediakeyid=$(cat ./*/.id) +mediakeyid=$(cat ./*/.id | tail -n 1) if [[ ! $(ipfs key list -l | grep $mediakeyid) ]]; then ## SEND A MESSAGE ASKING FOR THE KEY (I am a bootstrap or http gateway) for sharedowners in $(ls -d */ | cut -d '/' -f 1); do @@ -45,3 +45,4 @@ echo "$mediakeyid VIEW COUNTER UPDATED in https://tube.copylaradio.com/ipns/$J/$ # TODO REFRESH LOCAL STATE ## cp -Rf *.* /home/$YOU/.zen/ipfs/.$IPFSNODEID/KEY/$mediakeyid/ +## WRITE SEND .ipns.mediakey.encrypt like in ./zen/tools/MEDIAKEY_dunikey_pass_QR.sh or ./zen/tools/autoPINfriends.sh