관리-도구
편집 파일: governor.cpython-311.pyc
� |�Cg� � � � d dl Z d dlmZmZ d dlmZ d dlmZ d dlm Z m Z d dlmZ d dl mZ d dlmZ d d lmZmZ d dlmZ G d� d e� � ZdS )� N)�Dict�List)�Feature)� MySQLGovernor)�ExternalProgramFailed�run_command)� MysqlInfo)� getCPName)�MODULES_LOGS_DIR)�InstallationFailedException�UserInterventionNeededError� )�WizardInstallerc � � � e Zd Zej � ed� � ZdZdZ e j Z� fd�Z d� Zd� Zd� Zd� Zd � Zd � Zd� Zd� Zd � Z� xZS )�GovernorInstallerzgovernor.log�unknownz*/usr/share/lve/dbgovernor/mysqlgovernor.pyc � �� t � � � � � t � � � � � | _ d S )N)�super�__init__r �get�db_info)�self� __class__s ��P/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwizard/modules/governor.pyr zGovernorInstaller.__init__ s4 �� � �������� !�{�{���(�(����� c �^ � | � d� � s} | � d� � }nI# t $ r<}| j � dt |� � � � t � � |�d }~ww xY w| j � d|� � d S | j � d� � d S )Nzgovernor-mysqlz*Package installation failed with error: %sz&Package was installed successfully: %sz=Skip the governor-mysql installation, it is already installed)�_is_package_installed�_install_packager � app_logger�error�strr �info)r �out�errs r �_install_governor_packagez+GovernorInstaller._install_governor_package'