Hacked By AnonymousFox
�
ܨf� � �2 � d dl Z d dlmZ d dlmZ d� Zd� ZdS )� N)�Path)�CL_EDITION_FILE_FOR_USERSc �V � t t � � � d�� � dS )zx
Remove the file that contains the CloudLinux edition
for end-user access.
See CLOS-2411 for more info.
T)�
missing_okN)r r �unlink� � �py/clconfigure/files.py�remove_cl_edition_filer s* � � � "�#�#�*�*�d�*�;�;�;�;�;r c �. � t j ddgt j t j �� � } | � � � \ }}| j dk rdS t t d� � 5 }|� |� � ddd� � dS # 1 swxY w Y dS )z8
Populate edition cache again with new edition.
z/usr/bin/cldetectz--detect-edition)�stdout�stderrr N�wb)�
subprocess�Popen�PIPE�communicate�
returncode�openr �write)�pr
r �fs r
�update_cl_edition_filer s� � � ��-�/A�B� *��
�� I� I� I�A��]�]�_�_�N�F�F��|�q�����
�'�� .� .� �!� �������� � � � � � � � � � � ���� � � � � � s �'B
�
B�B)r �pathlibr �clcommon.lib.constsr r r r r r
�<module>r s_ �� � � � � � � � � � � 9� 9� 9� 9� 9� 9�<� <� <�� � � � r
Hacked By AnonymousFox1.0, Coded By AnonymousFox