summaryrefslogtreecommitdiffstats
path: root/freeipa.spec.in
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2012-02-13 09:16:26 -0500
committerMartin Kosek <mkosek@redhat.com>2012-02-15 15:19:32 +0100
commit95b1848f199a8f17936faac921d7b9495f90645b (patch)
tree28891c896efbd548e24d74658c946fad3a9478ed /freeipa.spec.in
parentfc2de9303575716e5d48c76892c190be1b6748fe (diff)
downloadfreeipa-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.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index a40368dea..198f4a423 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