[freeipa/f16] Re-arrange server's postin scriplet so that the whole if statement is used only < F-16

abbra abbra at fedoraproject.org
Tue Oct 18 19:17:56 UTC 2011


commit dae5246e9381c1a7edde4c8f561cdedf1c3630bf
Author: Alexander Bokovoy <abokovoy at redhat.com>
Date:   Tue Oct 18 22:17:12 2011 +0300

    Re-arrange server's postin scriplet so that the whole if statement is used only < F-16

 freeipa.spec |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/freeipa.spec b/freeipa.spec
index 1f15ef7..f903a56 100644
--- a/freeipa.spec
+++ b/freeipa.spec
@@ -383,13 +383,12 @@ rm -rf %{buildroot}
 # Use systemd scheme, update systemd as service units have changed
     /bin/systemctl --system daemon-reload 2>&1 || :
 %endif
-if [ $1 = 1 ]; then
 %if 0%{?fedora} < 16
-# Use SystemV scheme only before F16
+if [ $1 = 1 ]; then
     /sbin/chkconfig --add ipa
     /sbin/chkconfig --add ipa_kpasswd
-%endif
 fi
+%endif
 if [ $1 -gt 1 ] ; then
     /usr/sbin/ipa-upgradeconfig || :
     /usr/sbin/ipa-ldap-updater --upgrade >/dev/null 2>&1 || :


More information about the scm-commits mailing list