[katello-devel] [PATCH] Make a copy of katello-configure.conf in the log directory as well.

Jan Pazdziora jpazdziora at redhat.com
Wed Nov 2 15:47:55 UTC 2011


On Tue, Nov 01, 2011 at 01:23:59PM -0400, Cliff Perry wrote:
>
> Adding to backlog ;)

Please consider applying the following patch.

>From f9982c056e43835ecf049ba445454bcb9668aca5 Mon Sep 17 00:00:00 2001
From: Jan Pazdziora <jpazdziora at redhat.com>
Date: Wed, 2 Nov 2011 16:46:31 +0100
Subject: [PATCH] Make a copy of katello-configure.conf in the log directory
 as well.

---
 puppet/bin/katello-configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/puppet/bin/katello-configure b/puppet/bin/katello-configure
index b6f76ac..97f3915 100644
--- a/puppet/bin/katello-configure
+++ b/puppet/bin/katello-configure
@@ -215,6 +215,8 @@ end
 FileUtils.mkdir_p(log_directory, :mode => 0700)
 FileUtils.ln_sf('katello-configure-' + now, log_directory_link)
 
+FileUtils.cp result_config_path, log_directory
+
 ENV['KATELLO_ANSWER_FILE'] = result_config_path
 
 commands_by_logfiles = {
-- 
1.7.4.4


Thank you,

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the katello-devel mailing list