mirror of
https://github.com/certbot/certbot.git
synced 2026-01-21 19:01:07 +03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user