Browse Source

strop ipfs_SWARM_renew.sh + longer sleep after restart & /ipns_TAG_refresh.sh

master
qo-op 2 weeks ago
parent
commit
c88e491329
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      cron_MINUTE.sh

+ 7
- 7
cron_MINUTE.sh View File

@ -194,7 +194,7 @@ if [[ "$timebar" == "12:12" || "$timebar" == "00:12" || $(($runtime % 720)) == 0
[[ -f /etc/sudoers.d/systemctl || "$USER" == "xbian" ]] && sudo systemctl restart ipfs
#### timebar DESYNC
sleep $((1 + RANDOM % 5))
sleep $((12 + RANDOM % 5))
#### Refresh & publish MEDIAKEYs
$MY_PATH/zen/ipns_TAG_refresh.sh
@ -272,10 +272,10 @@ echo '
fi
### DISAPEAR ONE HOUR FROM IPFS SWARM ZOMBIES > 300 peers in swarm
if [[ $(cat /tmp/ipfs_swarm_peers | wc -l) -gt 300 ]]; then
if [[ "$timebar" == "04:05" ]]; then
~/.zen/astrXbian/zen/ipfs_SWARM_renew.sh 3600 ## CUT IPFS FOR ONE HOUR
#if [[ $(cat /tmp/ipfs_swarm_peers | wc -l) -gt 300 ]]; then
#if [[ "$timebar" == "04:05" ]]; then
# ~/.zen/astrXbian/zen/ipfs_SWARM_renew.sh 3600 ## CUT IPFS FOR ONE HOUR
## SWITCHING ON
echo "1" > ~/.zen/ipfs/.$IPFSNODEID/.switch
fi
fi
# echo "1" > ~/.zen/ipfs/.$IPFSNODEID/.switch
#fi
#fi

Loading…
Cancel
Save