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:21:26 +0100
commit1fb034bfed09e60bcf9336328b8eb55f5ad49f11 (patch)
treef67f108a81505bdcafe5015d4b94d34d35b5b23c /freeipa.spec.in
parent4a597ecf3854d6af4450b4af529f13cb9ed96ef2 (diff)
downloadfreeipa.git-1fb034bfed09e60bcf9336328b8eb55f5ad49f11.tar.gz
freeipa.git-1fb034bfed09e60bcf9336328b8eb55f5ad49f11.tar.xz
freeipa.git-1fb034bfed09e60bcf9336328b8eb55f5ad49f11.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 53e589d7..6c92747b 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -437,6 +437,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