RUN FROM ./zen/gchange_INIT.sh

This commit is contained in:
fred 2021-09-05 21:15:16 +02:00
parent 56f0ac5e43
commit a5d21041a1
2 changed files with 13 additions and 3 deletions

View File

@ -198,7 +198,14 @@ do
done 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 then ## DEFCON 3
# ACTIVATE PRIVATE SMARM !! 1ST BOOTSRAP creates and send a key to every level3 friends he knows (PUB) # ACTIVATE PRIVATE SMARM !! 1ST BOOTSRAP creates and send a key to every level3 friends he knows (PUB)
# RUN ONCE ONLY # RUN ONCE ONLY
@ -238,6 +245,8 @@ then ## DEFCON 3
fi fi
fi fi
fi fi
######################################################################## ########################################################################
# REFRESH Film Serie Anime Youtube ${PREFIX}ASTRXBIAN index # REFRESH Film Serie Anime Youtube ${PREFIX}ASTRXBIAN index
######################################################################## ########################################################################
@ -255,7 +264,7 @@ done
# rm ~/.kodi/userdata/addon_data/plugin.video.vstream/astroport_cache.db # 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 # REFRESH tiddlywiki WALL OF FRIENDS /ipns/${IPFSNODEID}/.${IPFSNODEID}/FRIENDS/index.html
######################################################################## ########################################################################
@ -307,7 +316,7 @@ echo "</main></body></html>" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
# REFRESH IPNS SELF PUBLISH # IPNS SELF PUBLISH = mise à jour balise Station
######################################################################## ########################################################################
~/.zen/astrXbian/zen/ipns_self_publish.sh ~/.zen/astrXbian/zen/ipns_self_publish.sh
######################################################################## ########################################################################

View File

@ -14,6 +14,7 @@ YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail
IPFSNODEID=$(ipfs id -f='<id>\n') IPFSNODEID=$(ipfs id -f='<id>\n')
G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) 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 # This script is called to manage SWARM autoPIN
# Actual behaviour is to accept anything from # Actual behaviour is to accept anything from
# SOURCE: ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB}/${PINnode}/.ipfsid.encrypt (new_file_in_astroport.sh) # SOURCE: ~/.zen/ipfs/.${IPFSNODEID}/KEY/${INDEXPREFIX}${REFERENCE}/${G1PUB}/${PINnode}/.ipfsid.encrypt (new_file_in_astroport.sh)