|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/__pycache__/ |
�
�LYht � �n � d dl Z d dlZd dlZd dlZd dlZdZdZdZdZ d� Z
d� Zefd�Zefd �Z
efd
�Zd� ZdS )� Nz/etc/sysconfig/cloudlinux�hooks�;zpython-cllib:clhook:c �t � t j dd�� � }t |_ |� | � � |S )z6
read config from file_name
return config
NF)�
interpolation�strict)�configparser�ConfigParser�str�optionxform�read)� file_name�configs ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.29-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clhook.py�
get_configr s8 � �
�
&�T�%�
H�
H�
H�F��F��
�K�K� �����M� c �D � |� dt j � � � �}t |dd�� � 5 }| � |� � ddd� � n# 1 swxY w Y t j ||� � n/# t $ r"}d|� |� dt |� � � �gcY d}~S d}~ww xY wdd gS )
zG
write config to file_name
return [BOOLEAN_STATE, MESSAGE]
�.�wzutf-8)�encodingNFz
write error
T�OK
)�os�getpid�open�write�shutil�move�IOErrorr
)r r
�debug_local_name�tmp_cfg_path� tmpconfig�es r �write_configr"