mirror of
https://github.com/certbot/certbot.git
synced 2026-04-27 09:09:48 -04:00
For some time, SUSE distributions have had both an apachectl executable and an apache2ctl compat symlink so both could be used but apachectl is preferred since that's the official upstream name. This is currently the case in SLE 15 SP2 and openSUSE Leap 15.2 (and every release since SLE 12 SP1) OTOH, openSUSE Tumbleweed removed the apache2ctl compat symlink some weeks ago and both SLE/Leap will follow in one of the next releases so it's better to change certbot to use the official name, apachectl.
28 lines
898 B
Python
28 lines
898 B
Python
""" Distribution specific override class for OpenSUSE """
|
|
import zope.interface
|
|
|
|
from certbot import interfaces
|
|
from certbot_apache._internal import configurator
|
|
|
|
|
|
@zope.interface.provider(interfaces.IPluginFactory)
|
|
class OpenSUSEConfigurator(configurator.ApacheConfigurator):
|
|
"""OpenSUSE specific ApacheConfigurator override class"""
|
|
|
|
OS_DEFAULTS = dict(
|
|
server_root="/etc/apache2",
|
|
vhost_root="/etc/apache2/vhosts.d",
|
|
vhost_files="*.conf",
|
|
logs_root="/var/log/apache2",
|
|
ctl="apachectl",
|
|
version_cmd=['apachectl', '-v'],
|
|
restart_cmd=['apachectl', 'graceful'],
|
|
conftest_cmd=['apachectl', 'configtest'],
|
|
enmod="a2enmod",
|
|
dismod="a2dismod",
|
|
le_vhost_ext="-le-ssl.conf",
|
|
handle_modules=False,
|
|
handle_sites=False,
|
|
challenge_location="/etc/apache2/vhosts.d",
|
|
bin=None,
|
|
)
|