Fix to run with Apache on RHEL 6 (#7401)

This PR fixes a regression in #7337 (0.38.0) that certbot cannot run with Apache on RHEL 6.

In RHEL 6, `distro.linux_distribution()` returns `RedHatEnterpriseServer`.

In RHEL 6:

```py
>>> import distro
>>> distro.linux_distribution()
(u'RedHatEnterpriseServer', u'6.10', u'Santiago')

>>> import platform
>>> platform.linux_distribution()
('Red Hat Enterprise Linux Server', '6.10', 'Santiago')
```

In RHEL 7:

```py
>>> import distro
>>> distro.linux_distribution()
('Red Hat Enterprise Linux Server', '7.6', 'Maipo')

>>> import platform
>>> platform.linux_distribution()
('Red Hat Enterprise Linux Server', '7.6', 'Maipo')
```

* fix to run with Apache on RHEL 6

* fix docs
This commit is contained in:
Kenichi Maehashi
2019-09-26 13:25:48 -07:00
committed by Brad Warren
parent 8cb57566c0
commit 6c89aa5227
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
### Fixed
*
* Fixed OS detection in the Apache plugin on RHEL 6.
More details about these changes can be found on our GitHub repo.