Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/clconfigure/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/clconfigure/__pycache__/awp.cpython-311.pyc

�

ܨf
���ddlZddlmZmZddlmZddlmZddlm	Z	ddl
mZdZdZ
ed	��d
���Zed��ded
efd���ZdS)�N)�run�task)�configure_accelerate_wp)�	is_ubuntu)�Feature)�is_panel_feature_supported�allowed_for_all�
accelerate_wpzEnabling Accelerate WPc�^�t��rtjd��dSttj��stjd��dS	t
��n$#t$rtjd��YnwxYwtj	d��tgd���dS)z%
    Set AccelerateWP free suite
    zFAccelerateWP setup upon new server is skipped: Ubuntu is not supportedNzMAccelerateWP setup upon new server is skipped: Control Panel is not supportedz7AccelerateWP configuration upon new server setup failedzETurning off notifications and automatic WordPress plugin installation)�/usr/bin/cloudlinux-awp-adminzset-optionsz--smart-advice-notifications�offz--smart-advice-wordpress-pluginr
z--smart-advice-remindersr
)r�logging�warningrr�WPOSr�	Exception�	exception�infor���py/clconfigure/awp.py�enable_accelerate_wp_freers���
�{�{����`�a�a�a���%�g�l�3�3����g�h�h�h���U��!�!�!�!���U�U�U���S�T�T�T�T�T�U�����L�X�Y�Y�Y��	,�	,�	,�-�-�-�-�-s�A$�$B�Bz7Changing Accelerate WP suite {suite} status to {status}�suite�statusc�d�|tkrtddd|dg��dStd|���)z2
    Set AccelerateWP suite to desired state.
    rz	set-suitez--suitesz--allowed-for-allz#Currently not implemented status %sN)�STATUS_ALLOWED_FOR_ALLr�NotImplementedError)rrs  r�set_suite_statusr+sB��
�'�'�'��
,�k�:�u�Na�b�c�c�c�c�c�!�"G��P�P�Pr)r�clconfigurerr�clcommon.clwpos_libr�clcommon.lib.cleditionr�clcommon.constr�clcommon.cpapirr�SUITE_AWP_FREEr�strrrrr�<module>r%s�������!�!�!�!�!�!�!�!�7�7�7�7�7�7�,�,�,�,�,�,�"�"�"�"�"�"�5�5�5�5�5�5�*�� �������-�-� ��-�0��?�@�@�Q�C�Q��Q�Q�Q�A�@�Q�Q�Qr

Hacked By AnonymousFox1.0, Coded By AnonymousFox