Update cleanup.sh
This commit is contained in:
parent
04cfe87afa
commit
14cbb88cdc
@ -27,6 +27,6 @@ find /usr/share/doc | egrep "\copyright" | xargs rm -rf
|
|||||||
find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en' |xargs rm -rf
|
find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en' |xargs rm -rf
|
||||||
# Delete old log files
|
# Delete old log files
|
||||||
logrotate -f /etc/logrotate.conf
|
logrotate -f /etc/logrotate.conf
|
||||||
find /var/log -type f -regex '.*/[^/]*.gz$' -delete && find /var/log -type f -regex '.*/[^/]*.[0-9]$' -delete
|
#find /var/log -type f -regex '.*/[^/]*.gz$' -delete && find /var/log -type f -regex '.*/[^/]*.[0-9]$' -delete
|
||||||
exit 0
|
exit 0
|
||||||
# EOF
|
# EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user