Your IP : 216.73.216.137
�
�h���2�ddlZddlmZddlmZd�Zd�ZdS)�N)�Path)�CL_EDITION_FILE_FOR_USERSc�V�tt���d���dS)zx
Remove the file that contains the CloudLinux edition
for end-user access.
See CLOS-2411 for more info.
T)�
missing_okN)rr�unlink���py/clconfigure/files.py�remove_cl_edition_filers*�� � "�#�#�*�*�d�*�;�;�;�;�;r c�x�tjddgtjtj���5}|���\}}|jdkr ddd��dS ddd��n#1swxYwYttd��5}|�|��ddd��dS#1swxYwYdS)z8
Populate edition cache again with new edition.
z/usr/bin/cldetectz--detect-edition)�stdout�stderrrN�wb)�
subprocess�Popen�PIPE�communicate�
returncode�openr�write)�procr
�_�fs r
�update_cl_edition_filersY��
� � �0�1�����
�
�
��
��$�$�&�&� ����?�a������������ �
������������������
�'�� .� .��!� ���������������������������s#�$A,�,A0�3A0�B/�/B3�6B3)r�pathlibr�clcommon.lib.constsrrrrr r
�<module>rs_������������9�9�9�9�9�9�<�<�<�����r
?>