diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-02-13 09:16:26 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-15 15:19:32 +0100 |
commit | 95b1848f199a8f17936faac921d7b9495f90645b (patch) | |
tree | 28891c896efbd548e24d74658c946fad3a9478ed /freeipa.spec.in | |
parent | fc2de9303575716e5d48c76892c190be1b6748fe (diff) | |
download | freeipa-95b1848f199a8f17936faac921d7b9495f90645b.tar.gz freeipa-95b1848f199a8f17936faac921d7b9495f90645b.tar.xz freeipa-95b1848f199a8f17936faac921d7b9495f90645b.zip |
Stop and uninstall ipa_kpasswd on upgrade, fix dbmodules in krb5.conf
The ipa_kpasswd service was deprecated in 2.2, replaced by kadmin. On
upgrade it will be left running by the previous installation, we need
to stop it and uninstall the service.
The dbmodules section needs to reflect that we're now using the new
IPA kdb backend instead of the standard MIT ldap backend.
https://fedorahosted.org/freeipa/ticket/2341
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r-- | freeipa.spec.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in index a40368de..198f4a42 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -440,6 +440,19 @@ if [ "$1" -ge "1" ]; then %endif fi +%pre server +# Stop ipa_kpasswd if it exists before upgrading so we don't have a +# zombie process when we're done. +if [ -e /usr/sbin/ipa_kpasswd ]; then +%if 0%{?fedora} >= 16 +# Use systemd scheme + /bin/systemctl stop ipa_kpasswd.service >/dev/null 2>&1 || : +%else +# Use SystemV scheme only before F16 + /sbin/service ipa_kpasswd stop >/dev/null 2>&1 || : +%endif +fi + %pre server-selinux if [ -s /etc/selinux/config ]; then . %{_sysconfdir}/selinux/config |