log rotate every week

This commit is contained in:
qo-op 2021-01-31 23:27:36 +01:00
parent a05deb248d
commit 38b3a649ee
1 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,7 @@ echo '
# REFRESH & UPGRADE youtube-dl
youtube-dl --rm-cache-dir
youtube-dl -U
#### DESYNC
sleep $((1 + RANDOM % 5))
##################################################################
@ -168,6 +169,9 @@ echo '
ipfs config Datastore.StorageMax $diskSize
echo "StorageMax = $diskSize"
# LOG ROTATE
[[ -f /tmp/astroport.log ]] && tar cvzf ~/.zen/astroport.$weeknumber.log.tgz /tmp/astroport.log && echo "" > /tmp/astroport.log
fi
##################################################################