Chad has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/315855

Change subject: Gerrit: Use -delete in log rotation find
......................................................................

Gerrit: Use -delete in log rotation find

Change-Id: I4d106dd38d0093a1a47ea4542d45cb2db8ef088b
---
M modules/gerrit/manifests/crons.pp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/55/315855/1

diff --git a/modules/gerrit/manifests/crons.pp 
b/modules/gerrit/manifests/crons.pp
index 8b5d7d2..10a7cd8 100644
--- a/modules/gerrit/manifests/crons.pp
+++ b/modules/gerrit/manifests/crons.pp
@@ -26,7 +26,7 @@
     cron { 'clear_gerrit_logs':
     # Gerrit rotates their own logs, but doesn't clean them out
     # Delete logs older than a week
-        command => 'find /var/lib/gerrit2/review_site/logs/ -name "*.gz" 
-mtime +7 -exec rm {} \\;',
+        command => 'find /var/lib/gerrit2/review_site/logs/ -name "*.gz" 
-mtime +7 -delete',
         user    => 'root',
         hour    => 1
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/315855
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4d106dd38d0093a1a47ea4542d45cb2db8ef088b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <ch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to