| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/__pycache__/ |
Upload File : |
�
�4�L��j� � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z dZ
dZdZdZ
ej e� � Zd� Zd� Ze
fd�Ze
fd �Ze
fd
�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.42-1.el9.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 �t � t j t j � |� � �� � \ }} t j |d� � t j |dd�� � 5 }d}| � |� � ddd� � n# 1 swxY w Y t j ||� � n]# t $ rP |�& t j |� � n# t $ r Y nw xY w t j
|� � n# t $ r Y nw xY w� w xY wn/# t $ r"}d|� |� dt |� � � �gcY d}~S d}~ww xY wd d
gS )zG
write config to file_name
return [BOOLEAN_STATE, MESSAGE]
)�diri� �w�utf-8)�encodingNFz
write error
T�OK
)�tempfile�mkstemp�os�path�dirname�fchmod�fdopen�write�shutil�move�
BaseException�close�OSError�unlink�IOErrorr
)r r
�debug_local_name�fd�tmp_cfg_path� tmpconfig�es r �write_configr, '