mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -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 -name "*.log" -exec truncate -s 0 {} \;
|
||||||
find /usr/local/vesta/log/ -type f -not -name "*.log" -delete
|
find /usr/local/vesta/log/ -type f -not -name "*.log" -delete
|
||||||
find /var/log/exim4/ -type f -exec truncate -s 0 {} \;
|
find /var/log/exim4/ -type f -exec truncate -s 0 {} \;
|
||||||
truncate -s 0 /*.log
|
truncate -s 0 /*.log > /dev/null 2>&1
|
||||||
rm /panic-*.log
|
rm /panic-*.log > /dev/null 2>&1
|
||||||
rm /var/log/panic-*.log
|
rm /var/log/panic-*.log > /dev/null 2>&1
|
||||||
|
|
||||||
clean_home() {
|
clean_home() {
|
||||||
nice -n 19 ionice -c 3 find $1/*/tmp/ -type f -delete
|
nice -n 19 ionice -c 3 find $1/*/tmp/ -type f -delete
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue