/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
certbot_apache
/
_internal
/
__pycache__
/
Upload File
HOME
� E��c] � �� � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl mZ dd l mZ ej e� � Z G d � dej � � Z G d� d ej � � ZdS )zG Distribution specific override class for CentOS family (RHEL, Fedora) � N)�Any)�apache_util)�configurator)�parser)� OsOptions)�errors)�utilc � � � e Zd ZdZ eddddddddgdd gdd gddgd�� � Zd� fd�Zd efd�Zd� fd�Z d� fd�Z dd�Z� xZS )�CentOSConfiguratorz1CentOS specific ApacheConfigurator override classz /etc/httpdz/etc/httpd/conf.dz*.confz/var/log/httpd� apachectl�httpdz-v�graceful�restart� configtest)�server_root� vhost_root�vhost_files� logs_root�ctl� apache_bin�version_cmd�restart_cmd�restart_cmd_alt�conftest_cmd�challenge_location�returnNc � �� t j � � }|d � � � dk } t � � � � � dS # t j $ r |r| � � � Y dS � w xY w)a( Override config_test to mitigate configtest error in vanilla installation of mod_ssl in Fedora. The error is caused by non-existent self-signed certificates referenced by the configuration, that would be autogenerated during the first (re)start of httpd. r �fedoraN)r �get_os_info�lower�super�config_testr �MisconfigurationError�_try_restart_fedora)�self�os_infor � __class__s ��J/usr/lib/python3/dist-packages/certbot_apache/_internal/override_centos.pyr"