Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lanning <sam@samlanning.com>2015-11-14 17:31:29 +0300
committerSam Lanning <sam@samlanning.com>2015-11-14 17:33:35 +0300
commit339bb9713751ee36ab86ef788ccf7d39b58b54b3 (patch)
tree29a8b8690f839509886e257bbabbd3db691eb3a7 /letsencrypt-auto
parent151c674cba6cd1e88521dbb5141d0c25662757b1 (diff)
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.
Diffstat (limited to 'letsencrypt-auto')
-rwxr-xr-xletsencrypt-auto6
1 files 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