Skip to content

Commit

Permalink
Added Nginx logs cleaner
Browse files Browse the repository at this point in the history
Added Nginx logs cleaner
  • Loading branch information
djprmf authored Oct 7, 2017
1 parent ed64a96 commit c835dd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpanel-disk-cleaner
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ rm -f /var/log/*.gz
rm -f /var/log/*.?
rm -f /var/log/archive/*.gz

## Remove logs from NGINX. This could be disable if Nginx is not installed in the server.
rm -f /var/log/nginx/*.gz
rm -f /var/log/nginx/*.?

## Remove /usr/local/apache/logs compressed logs and remove any variations (most of the times archived and useless)
rm -f /usr/local/apache/logs/*.gz
rm -f /usr/local/apache/logs/*.?
Expand Down

0 comments on commit c835dd1

Please sign in to comment.