From 96c3941d4ab1df1ec9b317be0ee1e72398d9a91f Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 18 Sep 2021 20:46:48 +0200 Subject: [PATCH] Called from ./zen/gchange_INIT.sh --- zen/tools/autoPINfriends.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zen/tools/autoPINfriends.sh b/zen/tools/autoPINfriends.sh index 66c5f31..616fb6b 100755 --- a/zen/tools/autoPINfriends.sh +++ b/zen/tools/autoPINfriends.sh @@ -14,7 +14,7 @@ YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail IPFSNODEID=$(ipfs id -f='\n') G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) -## RUN FROM ./zen/gchange_INIT.sh +## >>>>>>>>>>>>> Called from ./zen/gchange_INIT.sh <<<<<<<<<<<<<<<<<<<<<<< # This script is called to manage SWARM autoPIN # Actual behaviour is to accept anything from # SOURCE: ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB}/${PINnode}/.ipfsid.encrypt (new_file_in_astroport.sh) @@ -26,6 +26,7 @@ for astrofile in $(ls -dt ~/.zen/ipfs_swarm/.12D*/KEY/*/*/${G1PUB}/.ipfsid.encry do astrofilelinksec=$(echo "$astrofile" | sed "s/.ipfsid.encrypt/.ipfs.filelink.encrypt/g") # decrypt $astrofile + # /home/fred/.zen/ipfs_swarm/.12D3KooWJAQuoRt4HV8BYrmTfpws7gBGBSgSArap9uwAaHVDzru7/KEY/TMDB_100271/9M3k4JJM6arh8yG33ECXLt6Rh7do9AWLCKa9CJLL6vBB/HbBJDXDrN8swxvMohMxmegYRyZ7m99jqgxwwN1gwxck2/.ipfsid.encrypt mediakey=$(echo "$astrofile" | cut -d '/' -f 8 ) keytype=$(echo "$mediakey" | cut -d '_' -f 1 ) mediaid=$(echo "$mediakey" | cut -d '_' -f 2- )