Edit File: __init__.cpython-311.pyc
� �ghy � � � d dl Z d dlmZ d dlmZmZmZmZ d dlm Z d dl mZ e j e � � ZdZd� Zd� Zd � Zd � Z G d� d� � Zd � ZdS )� N)� LicenseCLN)� OsReleaseInfo� check_run�run�system_packages_info)�get_hardened_php_feature)� KernelCarez]wget -qq -O - https://repo.imunify360.cloudlinux.com/defence360/imunifyemail-deploy.sh | bashc �p � t j � � t j z rt t � � fS dS )N� )r �id_like�RHEL_FEDORA_CENTOSr r r � �S/opt/imunify360/venv/lib/python3.11/site-packages/im360/subsys/features/__init__.py�list_feature_typesr s2 � ������!A�A� ��4�6�6�7�7��rr c �. � t � � t d�S )N)zhardened-php� kernelcare)r r r r r �get_applicable_featuresr s � �0�2�2� �� � r c � � t � � D ]4}t |� � | d� � }t |� � r |� � �5dS )z� Features repo-files depends on server_id, so it should be actual after every registration operation :param str op: generate_repo/remove_repo N)r �getattr�callable)�op�feature�method_to_calls r �update_features_reposr % sY � � &�'�'� � �� �����B��5�5���N�#�#� ��N������ r c � �� K � t j � � r+t � d� � t d� � d S t � d� � t d� � d S )Nz8Updating repositories configuration with new credentials� generate_repoz>License is invalid. Repositories for features will be disabled�remove_repo)r �is_valid�logger�infor �warningr r r �update_reposr"