관리-도구
편집 파일: __init__.cpython-311.pyc
� |�Cg� � �2 � d dl Z d dlmZ d dlmZ d dlmZmZ d dlm Z m Z d dlmZm Z d dlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ edefdefdefdefdefdefdefg� � Z ede � � Z!d� Z"d� Z#d� Z$d� Z%dS )� N)�OrderedDict)�Dict)�NoSuchModule�acquire_config_access)�ModuleStatus� MAIN_LOG_PATH)�InstallationFailedException�UserInterventionNeededError)�setup_logger� )�WizardInstaller)�CagefsInstaller)�GovernorInstaller)�NodejsInstaller)�PhpInstaller)�PythonInstaller)� RubyInstaller)�LsapiInstaller�cagefs�mysql_governor�nodejs�php�python�ruby� mod_lsapiz wizard.runnerc �H � d� t � � � D � � S )z6Get list of supported modules on current control panelc �B � i | ]\ }}|� � � �||��S � )�is_supported_by_control_panel)�.0�name�modules �P/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwizard/modules/__init__.py� <dictcomp>z)get_supported_modules.<locals>.<dictcomp>. s@ � � � � �%��v��/�/�1�1���f�� � � )�ALL_MODULES�itemsr r% r# �get_supported_modulesr( , s/ � �� �)4�):�):�)<�)<�� � � r% c �N � t � d� � t � dt j � � � � t � � � � � D �]v\ } } |� � }t � � 5 } |� | �� � }|� | �� � }n6# t $ r) t � d| � � Y ddd� � �w xY w|t j k r(t � d| � � ddd� � ��|t j k r(t � d| � � ddd� � ��|t j k r)t � d| � � ddd� � ��,|� | t j � � � ddd� � n# 1 swxY w Y t! | ||� � � ��xt � dt j � � � � t � d� � dS ) z4Install modules according to settings in status filez<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~z7> Start new modules installation in process with pid %s)�module_namez.Module %s is not set for installation, skip itNz'Module %s is already installed, skip itz%Module %s has been cancelled, skip itzQModule %s requires a manual installation. Skipping it and continuing installation�r* � new_state)�optionsz0> Process with pid %s successfully finished workz<------------------------------------------------------------)�log�info�os�getpidr( r'