mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Muting some unnecessary cleaning errors
This commit is contained in:
parent
c32036e531
commit
b80a975621
1 changed files with 3 additions and 3 deletions
|
@ -49,9 +49,9 @@ find /var/log/ -name "*.gz" -type f -delete
|
|||
find /usr/local/vesta/log/ -type f -name "*.log" -exec truncate -s 0 {} \;
|
||||
find /usr/local/vesta/log/ -type f -not -name "*.log" -delete
|
||||
find /var/log/exim4/ -type f -exec truncate -s 0 {} \;
|
||||
truncate -s 0 /*.log
|
||||
rm /panic-*.log
|
||||
rm /var/log/panic-*.log
|
||||
truncate -s 0 /*.log > /dev/null 2>&1
|
||||
rm /panic-*.log > /dev/null 2>&1
|
||||
rm /var/log/panic-*.log > /dev/null 2>&1
|
||||
|
||||
clean_home() {
|
||||
nice -n 19 ionice -c 3 find $1/*/tmp/ -type f -delete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue