gchange_INIT.sh every 20 mn

This commit is contained in:
qo-op 2021-03-02 11:24:32 +01:00
parent dc6d2188d5
commit b6f781d718
1 changed files with 6 additions and 7 deletions

View File

@ -151,16 +151,15 @@ echo '
# #
# MAINTENANCE # MAINTENANCE
' '
sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/gchange_INIT.sh & sleep $((1 + RANDOM % 15)) ### Be careful if random sleep is not activated...
sleep $((1 + RANDOM % 5)) ### Be careful if random sleep is not activated...
############################## That swarm could become an aggressive blob !! ############################## That swarm could become an aggressive blob !!
### PEACE & LOVE software is processing... We are HyperWeb people here. ### PEACE & LOVE software is processing... We are HyperWeb people here.
# DEFCON 5 quiet behaviour so Please keep cool, take care and be zen. # DEFCON 5 quiet behaviour so Please keep cool, take care and be zen.
# GOOD BYE GOOGLE, AMAZON, FACEBOOK, APPLE, MICROSOFT. LIBRE WE ARE. # GOOD BYE GOOGLE, AMAZON, FACEBOOK, APPLE, MICROSOFT. LIBRE WE ARE.
#################################################################### ####################################################################
# REFRESH & UPGRADE youtube-dl # REFRESH & UPGRADE youtube-dl
youtube-dl --rm-cache-dir youtube-dl --rm-cache-dir
youtube-dl -U youtube-dl -U
################################################################## ##################################################################
@ -177,12 +176,12 @@ echo '
availableDiskSize=$(df -P ~/ | awk 'NR>1{sum+=$4}END{print sum}') availableDiskSize=$(df -P ~/ | awk 'NR>1{sum+=$4}END{print sum}')
diskSize="$((availableDiskSize / 2))" diskSize="$((availableDiskSize / 2))"
ipfs config Datastore.StorageMax $diskSize ipfs config Datastore.StorageMax $diskSize
echo "StorageMax = $diskSize" echo "StorageMax = $diskSize"
# LOG ROTATE # LOG ROTATE
[[ -f /tmp/astroport.log ]] && tar cvzf ~/.zen/astroport.$weeknumber.log.tgz /tmp/astroport.log && echo "" > /tmp/astroport.log [[ -f /tmp/astroport.log ]] && tar cvzf ~/.zen/astroport.$weeknumber.log.tgz /tmp/astroport.log && echo "" > /tmp/astroport.log
fi fi
################################################################## ##################################################################