takes care of friends first
This commit is contained in:
parent
5f2555f072
commit
a67815abbc
|
@ -140,8 +140,8 @@ fi
|
||||||
#
|
#
|
||||||
##################################################################
|
##################################################################
|
||||||
# TODO: IDEA make gchange/ipfs/ipns refresh speed depending on ipfs swarm size and DEFCON level !
|
# TODO: IDEA make gchange/ipfs/ipns refresh speed depending on ipfs swarm size and DEFCON level !
|
||||||
# SYNC GCHANGE EVERY 2 hours +/- 3 minutes
|
# SYNC GCHANGE EVERY 1 hour runtime
|
||||||
[[ $(($runtime % 120)) == 0 ]] && $MY_PATH/zen/gchange_INIT.sh && $MY_PATH/zen/gchange_IPFS_swarm.sh &
|
[[ $(($runtime % 60)) == 0 ]] && $MY_PATH/zen/gchange_INIT.sh && $MY_PATH/zen/gchange_IPFS_swarm.sh &
|
||||||
|
|
||||||
# QUICK SYNC SWARM EVERY 20 minutes +/- 1 minute
|
# QUICK SYNC SWARM EVERY 20 minutes +/- 1 minute
|
||||||
# [[ $(($runtime % 20)) == 0 ]] && $MY_PATH/zen/ipfs_SWARM_refresh.sh "quick" &
|
# [[ $(($runtime % 20)) == 0 ]] && $MY_PATH/zen/ipfs_SWARM_refresh.sh "quick" &
|
||||||
|
|
|
@ -45,7 +45,8 @@ echo "RETRIEVING MY OWN DATA FROM IPNS TO ~/.zen/ipfs_swarm"
|
||||||
ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID
|
ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID
|
||||||
########################################################################
|
########################################################################
|
||||||
count=1
|
count=1
|
||||||
ipfs swarm peers > /tmp/ipfs_swarm_peers
|
ipfs bootstrap > /tmp/ipfs_swarm_peers
|
||||||
|
ipfs swarm peers >> /tmp/ipfs_swarm_peers
|
||||||
for ipfsnodeid in $( (cat /tmp/ipfs_swarm_peers | grep -o '[^/]*$' && cat /tmp/A_swarm | grep -o '[^/]*$' ) | sort | uniq);
|
for ipfsnodeid in $( (cat /tmp/ipfs_swarm_peers | grep -o '[^/]*$' && cat /tmp/A_swarm | grep -o '[^/]*$' ) | sort | uniq);
|
||||||
do
|
do
|
||||||
## $ipfsnodeid already Treated ?
|
## $ipfsnodeid already Treated ?
|
||||||
|
|
Loading…
Reference in New Issue