mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Exclude /var/log/apt/* while cleaning garbage
This commit is contained in:
parent
aa85d2e581
commit
91fe4bc7c5
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ rm /var/backups/*
|
|||
rm /var/cache/apt/archives/*
|
||||
cd /var/log
|
||||
truncate -s 0 xferlog lastlog faillog btmp syslog;
|
||||
find /var/log/ -name "*.log" -type f -exec truncate -s 0 {} \;
|
||||
find /var/log/ -name "*.log" -not -path "/var/log/apt/*" -type f -exec truncate -s 0 {} \;
|
||||
find /var/log/ -name "*.err" -type f -exec truncate -s 0 {} \;
|
||||
find /var/log/ -name "errors" -type f -exec truncate -s 0 {} \;
|
||||
find /var/log/ -name "*.info" -type f -exec truncate -s 0 {} \;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue