/
proc
/
self
/
root
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
certbot_apache
/
_internal
/
__pycache__
/
Upload File
HOME
� E��c� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddl mZ G d � d ej � � Z G d� dej � � Zd S )z5 Distribution specific override class for Fedora 29+ � )�Any)�apache_util)�configurator)�parser)� OsOptions)�errors)�utilc �~ � � e Zd ZdZ edddddddgdd gdd gddgd�� � Zd� fd�Zdd�Zd� fd�Zd� fd�Z � xZ S )�FedoraConfiguratorz5Fedora 29+ specific ApacheConfigurator override classz /etc/httpdz/etc/httpd/conf.dz*.confz/var/log/httpd�httpdz-v� apachectl�graceful�restart� configtest) �server_root� vhost_root�vhost_files� logs_root�ctl�version_cmd�restart_cmd�restart_cmd_alt�conftest_cmd�challenge_location�returnNc � �� t � � � � � dS # t j $ 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. N)�super�config_testr �MisconfigurationError�_try_restart_fedora��self� __class__s ��J/usr/lib/python3/dist-packages/certbot_apache/_internal/override_fedora.pyr zFedoraConfigurator.config_test s] �� � '��G�G���!�!�!�!�!���+� '� '� '��$�$�&�&�&�&�&�&� '���s � % �#A�A�FedoraParserc �X � t | j j | | j j | j � � S )zInitializes the ApacheParser)r% �optionsr r �version)r"