????
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/__pycache__/cldetectlib.cpython-311.opt-1.pyc |
� Ck�eI � � � d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dlm Z d dl mZmZ d dl mZ d dlmZmZmZ dadadadad adadad Zd ZdZdZdZd ZdZ dZ!dZ"da#da$dZ%dZ&dZ'ej( �) e� � reZneZd� Z*d� Z+d?d�Z,d� Z-d� Z.d� Z/d� Z0d� Z1d� Z2d� Z3d� Z4d � Z5d!� Z6d"� Z7d#� Z8d$� Z9d%� Z:d&� Z;d'� Z<d(� Z=d)� Z>d*� Z?d+� Z@d,� ZAd-� ZBd.� ZCd/� ZDd0� ZEd1� ZFd2� ZGd3� ZHd4� ZId5� ZJd6� ZKd7� ZLd8� ZMd9� ZNd:� ZOd;� ZPd@d>�ZQdS )A� )�absolute_import)�print_functionN)� SysCtlConf�SYSCTL_CL_CONF_FILE)�get_cl_version)�SafeConfigParser�NoSectionError� NoOptionError�0 �apachez%/usr/local/lsws/conf/httpd_config.xmlz&/usr/local/lsws/conf/httpd_config.confz/usr/local/lsws/VERSIONz*/usr/lib/systemd/system/postgresql.servicez/etc/rc.d/init.d/postgresqlz/var/lock/cldeploy.lckz/etc/sysconfig/cloudlinuxz/etc/ssh/sshd_configzCloudLinux OS Shared ProzCloudLinux OS SharedzCloudLinux OS Soloc �H � t j � d� � rdS dS )Nz/etc/cpanel/ea4/is_ea4TF��os�path�exists� � �py/cldetectlib.py�is_ea4r R s# � � �w�~�~�.�/�/� ��t��5r c �0 � da dad a t j � � } | d a | d a| d an# Y nxY w t d� � 5 }|� � � }t j d|� � d }t j d |� � d }d a d� ||� � a d d d � � dS # 1 swxY w Y n# Y nxY wt j � d � � rda dadS t j � d� � rda dadS t j � d� � st j � d� � rda dadS t j � d� � rda dadS t j � d� � rda dadS t j � d� � rda dadS t j � d� � rda dadS t j � d� � rda dadS dS ) N�Unknown�0�name�version�additional_infoz/hsphere/shared/versionzRelease:\s+(.+)r zVersion:\s+(.+)�H-Spherez{0}.{1}T�/lib64/libnss_ng.so� HostingNG�none�/usr/local/cwpsrv�CentOS_WEB_Panel�'/etc/httpd/conf.d/atomia-pa-apache.conf�!/storage/configuration/cloudlinux�Atomia_agent�/usr/local/CyberCP� Cyberpanel� /var/phmgr�PlaneHoster�/usr/local/vesta�Vesta�/etc/virtualmin-license�VirtualminWebmin�/usr/local/webuzo/universal.php�WebuzoF)�CP_NAME� CP_VERSION�CP_ISP_TYPE�cpapi�get_cp_description�open�read�re�findall�formatr r �isfile�isdir)� panel_data�f�data�releaser s r �getCPr? Y s� � � �G��J��K� ��-�/�/� ��V�$��� �*� � �!2�3���� ������ � �+� ,� ,� ���6�6�8�8�D��j�!3�T�:�:�1�=�G��j�!3�T�:�:�1�=�G� �G�"�)�)�'�7�;�;�J�� � � � � � � � � � � � ���� � � � � �� ������ �w�~�~�+�,�,� ���� ��t� �w�}�}�(�)�)� �$��� ��t� �w�~�~�?�@�@� ��G�M�M�=�>�>�� ��� ��t� �w�}�}�)�*�*� ���� ��t� �w�}�}�\�"�"� ���� ��t� �w�}�}�'�(�(� ���� ��t� �w�~�~�/�0�0� �$��� ��t� �w�~�~�7�8�8� ���� ��t� �5s8 �+4 �8�C �A$B<�/C �<C � C �C �C �C� c � � t | d� � }|� � � }|� � � n# t $ r |cY S w xY w|D ]�}|� � � }|� |� � rb|� |� � }t |� � dk r:|d � � � |k r|d � � � c S ��|S )N�r� r � )r4 � readlines�close�IOError�strip� startswith�split�len)�fileName� paramName� separator�default_valr<