forked from axiom-team/astrXbian
Called from ./zen/gchange_INIT.sh
This commit is contained in:
parent
9944323978
commit
96c3941d4a
|
@ -14,7 +14,7 @@ YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail
|
|||
IPFSNODEID=$(ipfs id -f='<id>\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- )
|
||||
|
|
Loading…
Reference in New Issue