From ca5332951c68904b0763f79f3612209271206b2a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 18 Mar 2011 11:19:53 -0400 Subject: Automatically update IPA LDAP on rpm upgrades Re-enable ldapi code in ipa-ldap-updater and remove the searchbase restriction when run in --upgrade mode. This allows us to autobind giving root Directory Manager powers. This also: * corrects the ipa-ldap-updater man page * remove automatic --realm, --server, --domain options * handle upgrade errors properly * saves a copy of dse.ldif before we change it so it can be recovered * fixes an error discovered by pylint ticket 1087 --- freeipa.spec.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'freeipa.spec.in') diff --git a/freeipa.spec.in b/freeipa.spec.in index 8962b3f50..53bfb809c 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -279,7 +279,10 @@ if [ $1 = 1 ]; then /sbin/chkconfig --add ipa /sbin/chkconfig --add ipa_kpasswd fi -/usr/sbin/ipa-upgradeconfig || : +if [ $1 -gt 1 ] ; then + /usr/sbin/ipa-upgradeconfig || : + /usr/sbin/ipa-ldap-updater --upgrade >/dev/null 2>&1 || : +fi %preun server if [ $1 = 0 ]; then @@ -478,6 +481,9 @@ fi %ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/default.conf %changelog +* Thu Mar 17 2011 Rob Crittenden - 1.99-46 +- Automatically apply updates when the package is upgraded. + * Thu Feb 17 2011 Jakub Hrozek - 1.99-45 - Set minimum version of python-nss to 0.11 to make sure IPv6 support is in -- cgit