summaryrefslogtreecommitdiffstats
path: root/freeipa.spec.in
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2013-01-24 16:14:31 -0500
committerMartin Kosek <mkosek@redhat.com>2013-01-25 10:08:37 +0100
commit41d11f443bebc0a1303980363a4f751bfdbf2c12 (patch)
treeee600d0c37d1a78a45d68b57757780a8899a8230 /freeipa.spec.in
parentd5966bde802d8ef84c202a3e7c85f17b9e305a30 (diff)
downloadfreeipa-41d11f443bebc0a1303980363a4f751bfdbf2c12.tar.gz
freeipa-41d11f443bebc0a1303980363a4f751bfdbf2c12.tar.xz
freeipa-41d11f443bebc0a1303980363a4f751bfdbf2c12.zip
Make certmonger a (pre) requires on server, restart it before upgrading
certmonger may provide new CAs, as in the case from upgrading IPA 2.2 to 3.x. We need these new CAs available during the upgrade process. The certmonger package does its own condrestart as part of %postun which runs after the %post script of freeipa-server, so we need to restart it ourselves before upgrading. https://fedorahosted.org/freeipa/ticket/3378
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r--freeipa.spec.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index 3493fedee..189c7b922 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -127,6 +127,7 @@ Requires: keyutils
Requires: zip
Requires: policycoreutils >= %{POLICYCOREUTILSVER}
Requires: tar
+Requires(pre): certmonger >= 0.65
# We have a soft-requires on bind. It is an optional part of
# IPA but if it is configured we need a way to require versions
@@ -214,7 +215,7 @@ Requires: wget
Requires: libcurl >= 7.21.7-2
Requires: xmlrpc-c >= 1.27.4
Requires: sssd >= 1.8.0
-Requires: certmonger >= 0.60
+Requires: certmonger >= 0.65
Requires: nss-tools
Requires: bind-utils
Requires: oddjob-mkhomedir
@@ -430,6 +431,7 @@ rm -rf %{buildroot}
/bin/systemctl --system daemon-reload 2>&1 || :
# END
if [ $1 -gt 1 ] ; then
+ /bin/systemctl condrestart certmonger.service 2>&1 || :
/usr/sbin/ipa-upgradeconfig --quiet >/dev/null || :
fi
@@ -767,6 +769,10 @@ fi
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/ca.crt
%changelog
+* Thu Jan 24 2013 Rob Crittenden <rcritten@redhat.com> - 3.0.99-12
+- Add certmonger condrestart to server post scriptlet
+- Make certmonger a (pre) Requires on the server subpackage
+
* Fri Jan 22 2013 Petr Vobornik <pvoborni@redhat.com> - 3.0.99-11
- dependency fix
- Add BuildRequires: java-1.7.0-openjdk.