]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/replicate-cleanup.erb
Add cleanup job for replication logs
[chef.git] / cookbooks / planet / templates / default / replicate-cleanup.erb
diff --git a/cookbooks/planet/templates/default/replicate-cleanup.erb b/cookbooks/planet/templates/default/replicate-cleanup.erb
new file mode 100644 (file)
index 0000000..6049cc3
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+find /var/lib/replication/minute -name *.done -mtime +14 -print0 | xargs -0r rm