Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -d "/usr/local/webuzo" ]; then
- /usr/bin/find /usr/local/apps/apache/logs -type f -iname *.err* -delete &>/dev/null
- /usr/bin/find /usr/local/apps/apache/logs -type f -iname *.gz -delete &>/dev/null
- /usr/bin/find /usr/local/apps/apache/logs -type f -iname *.log* -delete &>/dev/null
- /usr/bin/find /usr/local/apps/apache/logs -type f -iname *_log* -delete &>/dev/null
- /usr/bin/find /usr/local/apps/apache/logs -type f -iname *error_log* -delete &>/dev/null
- /usr/bin/find /usr/local/apps/apache/logs -type f -iname *php*_log* -delete &>/dev/null
- echo "[+] Webuzo Apache Logs Cleaned [+]";
- fi
Add Comment
Please, Sign In to add comment