summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-05-14 09:29:16 -0400
committerRob Crittenden <rcritten@redhat.com>2009-05-19 09:53:57 -0400
commit7ef34b8cdafa655e757d18c120ab484791531a8e (patch)
treeeeee968c6c8c594c31a6400522aa1fd7f0fa51be
parent2d0624cff52e38f0d2aa275cdbfd537aacb27b19 (diff)
downloadfreeipa-7ef34b8cdafa655e757d18c120ab484791531a8e.tar.gz
freeipa-7ef34b8cdafa655e757d18c120ab484791531a8e.tar.xz
freeipa-7ef34b8cdafa655e757d18c120ab484791531a8e.zip
Own the Apache configuration files that ipa-server-install creates
-rw-r--r--ipa.spec.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipa.spec.in b/ipa.spec.in
index d0b34eb77..85aab33aa 100644
--- a/ipa.spec.in
+++ b/ipa.spec.in
@@ -239,6 +239,10 @@ ln -s ../../../..%{_sysconfdir}/ipa/html/ssbrowser.html \
ln -s ../../../..%{_sysconfdir}/ipa/html/unauthorized.html \
%{buildroot}%{_usr}/share/ipa/html/unauthorized.html
+# So we can own our Apache configuration
+/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/ipa/ipa.conf
+/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/ipa/ipa-rewrite.conf
+
%clean
rm -rf %{buildroot}
@@ -343,6 +347,8 @@ fi
%dir %{_sysconfdir}/ipa/html
%config(noreplace) %{_sysconfdir}/ipa/html/ssbrowser.html
%config(noreplace) %{_sysconfdir}/ipa/html/unauthorized.html
+%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/ipa.conf
+%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/ipa-rewrite.conf
%{_usr}/share/ipa/ipa.conf
%{_usr}/share/ipa/ipa-rewrite.conf
#%dir %{_usr}/share/ipa/ipaserver