spacewalk/admin/rhn-config-satellite.pl | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 92f8d65a57d9cb336ead4880705d72157828feeb
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Apr 29 10:49:29 2011 +0200
For config files created in /etc/rhn, do chgrp apache.
diff --git a/spacewalk/admin/rhn-config-satellite.pl
b/spacewalk/admin/rhn-config-satellite.pl
index 312c284..d1b9896 100755
--- a/spacewalk/admin/rhn-config-satellite.pl
+++ b/spacewalk/admin/rhn-config-satellite.pl
@@ -47,6 +47,9 @@ open(TARGET, "< $target") or die "Could not open
$target: $OS_ERROR";
unlink $tmpfile if -e $tmpfile;
umask 0027;
open(TMP, "> $tmpfile") or die "Could not open $tmpfile for writing:
$OS_ERROR";
+if ($tmpfile =~ m!^/etc/rhn/!) {
+ chown 0, scalar(getgrnam("apache")), $tmpfile;
+}
while (my $line = <TARGET>) {
if ($line =~ /\[prompt\]/ or $line =~ /^#/) {
Show replies by date