summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-01-31 14:21:07 -0500
committerRob Crittenden <rcritten@redhat.com>2008-01-31 14:21:07 -0500
commit1b988fff8206290664931e0ce99e4fb897d0ac48 (patch)
tree9ac00d2e7d240f8981ff0dba4adedad27aa8f047
parent5834ada3e9f4f1052f4846bcb576f2134453a233 (diff)
downloadfreeipa-1b988fff8206290664931e0ce99e4fb897d0ac48.tar.gz
freeipa-1b988fff8206290664931e0ce99e4fb897d0ac48.tar.xz
freeipa-1b988fff8206290664931e0ce99e4fb897d0ac48.zip
Ensure that the ipa_webgui error log exists and has correct permissions.
Resolves 431089
-rwxr-xr-xipa-server/ipa-server.spec9
-rw-r--r--ipa-server/ipa-server.spec.in9
2 files changed, 16 insertions, 2 deletions
diff --git a/ipa-server/ipa-server.spec b/ipa-server/ipa-server.spec
index 9a95ceeb9..731d6add4 100755
--- a/ipa-server/ipa-server.spec
+++ b/ipa-server/ipa-server.spec
@@ -1,6 +1,6 @@
Name: ipa-server
Version: 0.6.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: IPA authentication server
Group: System Environment/Base
@@ -85,6 +85,10 @@ if [ $1 = 1 ]; then
/sbin/chkconfig --add ipa_kpasswd
/sbin/chkconfig --add ipa_webgui
fi
+/bin/touch /var/log/ipa_error.log
+/bin/chown apache /var/log/ipa_error.log
+/bin/chmod 600 /var/log/ipa_error.log
+
%preun
if [ $1 = 0 ]; then
@@ -143,6 +147,9 @@ fi
%attr(700,apache,apache) %dir %{_localstatedir}/cache/ipa/sessions
%changelog
+* Thu Jan 31 2008 Rob Crittenden <rcritten@redhat.com> 0.6.0-6
+- Ensure that the ipa_webgui error log exists and has correct permissions.
+
* Tue Jan 29 2008 Rob Crittenden <rcritten@redhat.com> 0.6.0-5
- Put user-modifiable files into /etc/ipa so they can be marked as
config(noreplace).
diff --git a/ipa-server/ipa-server.spec.in b/ipa-server/ipa-server.spec.in
index 7c117557e..741c0c1eb 100644
--- a/ipa-server/ipa-server.spec.in
+++ b/ipa-server/ipa-server.spec.in
@@ -1,6 +1,6 @@
Name: ipa-server
Version: VERSION
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: IPA authentication server
Group: System Environment/Base
@@ -85,6 +85,10 @@ if [ $1 = 1 ]; then
/sbin/chkconfig --add ipa_kpasswd
/sbin/chkconfig --add ipa_webgui
fi
+/bin/touch /var/log/ipa_error.log
+/bin/chown apache /var/log/ipa_error.log
+/bin/chmod 600 /var/log/ipa_error.log
+
%preun
if [ $1 = 0 ]; then
@@ -143,6 +147,9 @@ fi
%attr(700,apache,apache) %dir %{_localstatedir}/cache/ipa/sessions
%changelog
+* Thu Jan 31 2008 Rob Crittenden <rcritten@redhat.com> 0.6.0-6
+- Ensure that the ipa_webgui error log exists and has correct permissions.
+
* Tue Jan 29 2008 Rob Crittenden <rcritten@redhat.com> 0.6.0-5
- Put user-modifiable files into /etc/ipa so they can be marked as
config(noreplace).