[Ovirt-devel] [PATCH node-image] compress all logrotated files

Alan Pevec apevec at redhat.com
Thu May 28 17:30:30 UTC 2009


---
 common-post.ks |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/common-post.ks b/common-post.ks
index 7f40705..13632de 100644
--- a/common-post.ks
+++ b/common-post.ks
@@ -139,3 +139,10 @@ EOF
 # Remove the default logrotate daily cron job
 # since we run it every 10 minutes instead.
 rm -f /etc/cron.daily/logrotate
+
+# compress all logrotated files
+augtool <<\EOF
+set /files/etc/logrotate.conf/compress compress
+save
+EOF
+
-- 
1.6.0.6




More information about the ovirt-devel mailing list