From 339bb9713751ee36ab86ef788ccf7d39b58b54b3 Mon Sep 17 00:00:00 2001 From: Sam Lanning Date: Sat, 14 Nov 2015 14:31:29 +0000 Subject: [PATCH] Check for python2.7 before python2 There are cases where more than one version of python2 is installed, and where the default is not 2.7. For example in CentOS 6, it is common for both 2.6 and 2.7 to be installed, as yum requires 2.6 apparently for some reason. --- letsencrypt-auto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/letsencrypt-auto b/letsencrypt-auto index 44de7fbf2..4d541d5bc 100755 --- a/letsencrypt-auto +++ b/letsencrypt-auto @@ -83,10 +83,10 @@ ExperimentalBootstrap() { } DeterminePythonVersion() { - if command -v python2 > /dev/null ; then - export LE_PYTHON=${LE_PYTHON:-python2} - elif command -v python2.7 > /dev/null ; then + if command -v python2.7 > /dev/null ; then export LE_PYTHON=${LE_PYTHON:-python2.7} + elif command -v python2 > /dev/null ; then + export LE_PYTHON=${LE_PYTHON:-python2} elif command -v python > /dev/null ; then export LE_PYTHON=${LE_PYTHON:-python} else