diff options
author | Xiao-Long Chen <chenxiaolong@cxl.epac.to> | 2013-11-27 14:53:57 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-01-03 09:46:05 +0100 |
commit | 5e96fbc22afa02f08f71513e7b59d3d5c6a1f9dc (patch) | |
tree | dfca5a74b65ee88f7e9ccb868bc7c99b01f739af /freeipa.spec.in | |
parent | 2a2f5ac4e68ed9a819ddc3de1d35366b2e2b58c7 (diff) | |
download | freeipa-5e96fbc22afa02f08f71513e7b59d3d5c6a1f9dc.tar.gz freeipa-5e96fbc22afa02f08f71513e7b59d3d5c6a1f9dc.tar.xz freeipa-5e96fbc22afa02f08f71513e7b59d3d5c6a1f9dc.zip |
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
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r-- | freeipa.spec.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in index df68be0a1..0e320ed3a 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 || : |