mirror of
https://github.com/certbot/certbot.git
synced 2026-07-16 05:03:08 -04:00
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.
This commit is contained in:
parent
151c674cba
commit
339bb97137
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue