관리-도구
편집 파일: abstract_feature.cpython-311.pyc
� IMg � �� � d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlm Z d dl Z ej e� � Z G d� d� � Zd� Z G d� d e� � Z G d � de� � Z G d� d e�� � ZdS )� N)�ABCMeta�abstractmethod)�isclose)�Listc �* � e Zd ZdZdZdZdZdZdZdZ dS ) � FeatureStatus�error� installed� installing�removing� not_installed�managed_by_lveznot-supported-by-cl-soloN) �__name__� __module__�__qualname__�ERROR� INSTALLED� INSTALLING�REMOVING� NOT_INSTALLED�MANAGED_BY_LVE�NOT_SUPPORTED_BY_CL_SOLO� � �e/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/subsys/features/abstract_feature.pyr r s4 � � � � � ��E��I��J��H�#�M�%�N�9���r r c � � � � fd�}|S )z� If Easy Apache 4 not installed, then raising an error :raises FeatureError :param func: install or remove func :return func: c � � �K � t j � d� � st d� � � �| i |��� d {V ��S )Nz/etc/cpanel/ea4/is_ea4z3Hardened PHP is compatible only with Easy Apache 4!)�os�path�isfile�FeatureError)�args�kwargs�funcs �r �wrapperzea4_only.<locals>.wrapper s\ �� � � ��w�~�~�6�7�7� ��E�� � � �T�4�*�6�*�*�*�*�*�*�*�*�*r r �r$ r% s ` r �ea4_onlyr'