diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 520b539..8c751f6 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -198,7 +198,14 @@ do done -if [[ $DEFCON -eq 3 ]]; + +## PUBLISH PEERING.PEERS +## Create json format Peering.Peers +echo "{ \"Peering\": {\"Peers\": [ $(cat ~/.zen/A_peering_peers.txt | jq -c | sed 's/}/},/g' | sed '$ s/.$//') ] } }" | jq -c > ~/.zen/ipfs/.$IPFSNODEID/.peering.peers.json + +######################################################################## +if [[ $DEFCON -eq 3 ]];######################################################### +######################################################################## then ## DEFCON 3 # ACTIVATE PRIVATE SMARM !! 1ST BOOTSRAP creates and send a key to every level3 friends he knows (PUB) # RUN ONCE ONLY @@ -238,6 +245,8 @@ then ## DEFCON 3 fi fi fi + + ######################################################################## # REFRESH Film Serie Anime Youtube ${PREFIX}ASTRXBIAN index ######################################################################## @@ -255,7 +264,7 @@ done # rm ~/.kodi/userdata/addon_data/plugin.video.vstream/astroport_cache.db ######################################################################## -## RENEW "BALISE" LIST OF FRIENDS index.html +## RENEW LIST OF FRIENDS index.html ######################################################################## # REFRESH tiddlywiki WALL OF FRIENDS /ipns/${IPFSNODEID}/.${IPFSNODEID}/FRIENDS/index.html ######################################################################## @@ -307,7 +316,7 @@ echo "" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html -# REFRESH IPNS SELF PUBLISH +# IPNS SELF PUBLISH = mise à jour balise Station ######################################################################## ~/.zen/astrXbian/zen/ipns_self_publish.sh ######################################################################## diff --git a/zen/tools/autoPINfriends.sh b/zen/tools/autoPINfriends.sh index 88fab9d..66c5f31 100755 --- a/zen/tools/autoPINfriends.sh +++ b/zen/tools/autoPINfriends.sh @@ -14,6 +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 # 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)