Update v-clean-garbage

This commit is contained in:
myvesta 2021-12-19 16:06:13 +01:00 committed by GitHub
commit 909619ef69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,8 +28,8 @@ find /home/*/web/*/public_html/wp-content/aiowps_backups/ -type f -not -name ".h
find /home/*/web/*/public_html/wp-content/envato-backups/ -type f -not -name ".htaccess" -not -name "index.php" -not -name "index.html" -not -name "web.config" -delete
find /home/*/web/*/public_html/wp-content/ai1wm-backups/ -type f -not -name ".htaccess" -not -name "index.php" -not -name "index.html" -not -name "web.config" -delete
find /home/*/web/*/public_html/wp-content/updraft/ -type f -not -name ".htaccess" -not -name "index.php" -not -name "index.html" -not -name "web.config" -delete
find /home/*/web/*/public_html/ -type f -name "error_log" -delete
find /home/*/web/*/public_html/ -type f -name "error_log.txt" -delete
find /home/ -type f -name "*.log" -delete
find /home/*/web/*/public_html/ -type f -name "error_log" -exec truncate -s 0 {} \;
find /home/*/web/*/public_html/ -type f -name "error_log.txt" -exec truncate -s 0 {} \;
find /home/ -type f -name "*.log" -exec truncate -s 0 {} \;
echo "=== Garbage cleaned ==="