mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
certbot-apache: Add Void Linux overrides (#8891)
* certbot-apache: Add Void Linux overrides * certbot-apache: Correct distro name to Void Linux
This commit is contained in:
@@ -10,6 +10,7 @@ from certbot_apache._internal import override_debian
|
|||||||
from certbot_apache._internal import override_fedora
|
from certbot_apache._internal import override_fedora
|
||||||
from certbot_apache._internal import override_gentoo
|
from certbot_apache._internal import override_gentoo
|
||||||
from certbot_apache._internal import override_suse
|
from certbot_apache._internal import override_suse
|
||||||
|
from certbot_apache._internal import override_void
|
||||||
|
|
||||||
OVERRIDE_CLASSES = {
|
OVERRIDE_CLASSES = {
|
||||||
"arch": override_arch.ArchConfigurator,
|
"arch": override_arch.ArchConfigurator,
|
||||||
@@ -35,6 +36,7 @@ OVERRIDE_CLASSES = {
|
|||||||
"sles": override_suse.OpenSUSEConfigurator,
|
"sles": override_suse.OpenSUSEConfigurator,
|
||||||
"scientific": override_centos.CentOSConfigurator,
|
"scientific": override_centos.CentOSConfigurator,
|
||||||
"scientific linux": override_centos.CentOSConfigurator,
|
"scientific linux": override_centos.CentOSConfigurator,
|
||||||
|
"void": override_void.VoidConfigurator,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
""" Distribution specific override class for Void Linux """
|
||||||
|
import zope.interface
|
||||||
|
|
||||||
|
from certbot import interfaces
|
||||||
|
from certbot_apache._internal import configurator
|
||||||
|
from certbot_apache._internal.configurator import OsOptions
|
||||||
|
|
||||||
|
|
||||||
|
@zope.interface.provider(interfaces.IPluginFactory)
|
||||||
|
class VoidConfigurator(configurator.ApacheConfigurator):
|
||||||
|
"""Void Linux specific ApacheConfigurator override class"""
|
||||||
|
|
||||||
|
OS_DEFAULTS = OsOptions(
|
||||||
|
server_root="/etc/apache",
|
||||||
|
vhost_root="/etc/apache/extra",
|
||||||
|
vhost_files="*.conf",
|
||||||
|
logs_root="/var/log/httpd",
|
||||||
|
ctl="apachectl",
|
||||||
|
version_cmd=['apachectl', '-v'],
|
||||||
|
restart_cmd=['apachectl', 'graceful'],
|
||||||
|
conftest_cmd=['apachectl', 'configtest'],
|
||||||
|
challenge_location="/etc/apache/extra",
|
||||||
|
)
|
||||||
@@ -6,7 +6,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
*
|
* Add Void Linux overrides for certbot-apache.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user