Created
January 25, 2015 18:10
-
-
Save mario21ic/ea2cf849c9d653f67432 to your computer and use it in GitHub Desktop.
Clean logs apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
service httpd stop | |
rm -rf /usr/local/apache/domlogs/*{offsetftpbytes,bytes_log,bkup} | |
rm -rf /usr/local/apache/domlogs/*.{es,com,net,org,pe,com.pe} | |
rm -rf /usr/local/apache/domlogs/ftp* | |
rm -rf /usr/local/apache/domlogs/*/* | |
service httpd start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment