mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Merge branch 'master' into v20.08
This commit is contained in:
@@ -27,4 +27,6 @@ if [ $logusage -ge $treshold ]; then
|
||||
/usr/bin/find /var/log -name 'mail.err' -or -name 'mail.info' -or -name 'mail.warning' | xargs -r truncate --size 0
|
||||
# remove
|
||||
/usr/bin/find /var/log -name '*.[0-9]' -or -name '*.gz' | xargs -r rm -f
|
||||
# rotate and vacuum systemd-journal
|
||||
/usr/bin/journalctl --vacuum-size=5M --rotate
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user