From 38a27b1c2f7750da1d6b75c7c2320762ca0f3d08 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 16 Sep 2009 13:04:14 -0400 Subject: [PATCH] Properly own (via ghost) the Apache configuration files. --- ipa.spec.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ipa.spec.in b/ipa.spec.in index 2408b0793..d1173b23e 100644 --- a/ipa.spec.in +++ b/ipa.spec.in @@ -242,8 +242,11 @@ ln -s ../../../..%{_sysconfdir}/ipa/html/unauthorized.html \ %{buildroot}%{_usr}/share/ipa/html/unauthorized.html # So we can own our Apache configuration +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ipa/ +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ /bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/ipa/ipa.conf -/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/ipa/ipa-rewrite.conf +/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ipa.conf +/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf %clean rm -rf %{buildroot} @@ -349,7 +352,8 @@ fi %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 +%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf +%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa.conf %{_usr}/share/ipa/ipa.conf %{_usr}/share/ipa/ipa-rewrite.conf #%dir %{_usr}/share/ipa/ipaserver