Server IP : 192.158.238.246 / Your IP : 18.116.15.98 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/root/opt/alt/python37/lib/python3.7/site-packages/ssa/__pycache__/ |
Upload File : |
B V�d�7 � @ s� d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z ddlmZ ddl mZ ddlmZ dd lmZmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ G dd� d�Zdd�dd�ZdS )zA This module contains classes implementing SSA Manager behaviour � N)�contextmanager)�iglob)�is_cl_solo_edition)� disable_quota)�Tuple� )�load_validated_parser�load_configuration)� flag_file)�SSAManagerError)�ssa_version)� AutoTracer)� DecisionMakerc @ s� e Zd ZdZdd� Zedd�dd��Zeed�dd ��Z ee d�d d��Zee d�dd ��Ze e d�dd�ZdAeejd�dd�Ze dd�dd�Zdd�dd�Zdd�dd�Zdd�dd�Zdd�dd�Zdd�d d!�Zeed"�d#d$�Zeeeef ef d�d%d&�Zed'd(� �Zeeed)d*�d+d,�Z d)d�d-d.�Z!eeeef ef d�d/d0�Z"d)d�d1d2�Z#d)d�d3d4�Z$d)d�d5d6�Z%ed�d7d8�Z&d)d�d9d:�Z'd)d�d;d<�Z(dd�d=d>�Z)d)d�d?d@�Z*d)S )B�Managerz SSA Manager class. c C sD t �d�| _d| _d| _d| _tddd� d�f| _tt t jf| _d S ) N�managerzclos_ssa.ini)Zphp44Zphp51Zphp52Zphp53zphp\d+-imunifyzphp-internal)z /opt/alt/php[0-9][0-9]/link/confz+/opt/cpanel/ea-php[0-9][0-9]/root/etc/php.dz$/opt/plesk/php/[0-9].[0-9]/etc/php.dz'/usr/local/php[0-9][0-9]/lib/php.conf.dzM/usr/share/cagefs/.cpanel.multiphp/opt/cpanel/ea-php[0-9][0-9]/root/etc/php.dzA/usr/share/cagefs-skeleton/usr/local/php[0-9][0-9]/lib/php.conf.dz./var/cagefs/*/*/etc/cl.php.d/alt-php[0-9][0-9]c S s t �| �d�d �S )N�/� )�pwd�getpwnam�split)�path� r �</opt/alt/python37/lib/python3.7/site-packages/ssa/manager.py�<lambda>6 � z"Manager.__init__.<locals>.<lambda>)r �user) �logging� getLogger�logger� ini_file_name�substrings_to_exclude_dir_paths�wildcard_ini_locations�dict�wildcard_ini_user_locations�OSError� ValueError� subprocess�SubprocessError�subprocess_errors)�selfr r r �__init__% s zManager.__init__zjson str)�returnc O s* ddi}|� dd� |�� D �� t�|�S )z@ Form a success json response with given kwargs �result�successc S s i | ]\}}||�qS r r )�.0�k�vr r r � <dictcomp>B s z$Manager.response.<locals>.<dictcomp>)�update�items�json�dumps)�args�kwargsZraw_responser r r �response<