관리-도구
편집 파일: clhook.cpython-311.pyc
� \�Dgt � �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 �o/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/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"