From 5e96fbc22afa02f08f71513e7b59d3d5c6a1f9dc Mon Sep 17 00:00:00 2001 From: Xiao-Long Chen Date: Wed, 27 Nov 2013 14:53:57 +0100 Subject: Use /usr/bin/python2 Part of the effort to port FreeIPA to Arch Linux, where Python 3 is the default. FreeIPA hasn't been ported to Python 3, so the code must be modified to run /usr/bin/python2 https://fedorahosted.org/freeipa/ticket/3438 Updated by pviktori@redhat.com --- freeipa.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'freeipa.spec.in') diff --git a/freeipa.spec.in b/freeipa.spec.in index df68be0a..0e320ed3 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -496,7 +496,7 @@ fi # Restart IPA processes. This must be also run in postrans so that plugins # and software is in consistent state -python -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1 +python2 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1 # NOTE: systemd specific section if [ $? -eq 0 ]; then /bin/systemctl try-restart ipa.service >/dev/null 2>&1 || : @@ -532,7 +532,7 @@ fi winbind_krb5_locator.so /dev/null 90 %posttrans server-trust-ad -python -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1 +python2 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1 if [ $? -eq 0 ]; then # NOTE: systemd specific section /bin/systemctl try-restart httpd.service >/dev/null 2>&1 || : -- cgit