From a56057c56c8f3a82a1bc3c47554197917d3ca0c9 Mon Sep 17 00:00:00 2001
From: Jeremy Stanley <fungi@yuggoth.org>
Date: Thu, 29 Sep 2016 15:59:11 +0000
Subject: [PATCH] Remove unused log_archive_maintenance.sh script

Change I390f6ea8aaace276d211d55a0e17f25dd6ae26b5 removed use of
log_archive_maintenance.sh once it was being installed from the
openstackci module, but never removed the file itself. This has led
to at least one instance of the wrong copy of the file being edited,
followed by surprise and research to understand why it wasn't
updating. Solve this by finishing the cleanup from the original
change.

Change-Id: Id744f8d4d01134aaf33b8a83d875d3aa84f3994b
---
 .../files/log_archive_maintenance.sh                | 13 -------------
 1 file changed, 13 deletions(-)
 delete mode 100644 modules/openstack_project/files/log_archive_maintenance.sh

diff --git a/modules/openstack_project/files/log_archive_maintenance.sh b/modules/openstack_project/files/log_archive_maintenance.sh
deleted file mode 100644
index 88685644c1..0000000000
--- a/modules/openstack_project/files/log_archive_maintenance.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-sleep $((RANDOM%600)) && \
-flock -n /var/run/gziplogs.lock \
-find -O3 /srv/static/logs/ -depth -not -name robots.txt -not -name lost+found \
-        -not -wholename /srv/static/logs/help/\* \( \
-    \( -type f -mmin +10 -not -name \*\[.-\]gz -not -name \*\[._-\]\[zZ\] \
-        \( -name \*.txt -or -name \*.html -or -name tmp\* \) \
-        -exec gzip -f \{\} \; \) \
-    -o \( -type f -mtime +90 -execdir rm \{\} \; \) \
-    -o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \)
-find -O3 /srv/static/docs-draft/ -depth -not -name lost+found \( \
-    \( -type f -mtime +21 -execdir rm \{\} \; \) \
-    -o \( -type d -empty -mtime +1 -execdir rmdir {} \; \) \)