Mini Shell

Direktori : /usr/share/cagefs-plugins/__pycache__/
Upload File :
Current File : //usr/share/cagefs-plugins/__pycache__/mysql_lib.cpython-311.pyc

�

�o�il���ddlmZddlmZddlmZddlmZddlZddlmZej��ddl	Td�Z
d	�Zd
�ZdS)�)�absolute_import)�division)�print_function)�unicode_literalsN)�standard_library)�*c
�x�tdd��5}|������}ddd��n#1swxYwY|�dd�����}tjd|�d�ddt
jdd	d
|i���}|���dS)
Nz/etc/psa/.psa.shadow�r�
� z<mysql --no-beep --skip-column-names --user=admin --execute="z;"Tz	/bin/bash����	MYSQL_PWD)�shell�
executable�stdout�text�bufsize�envr)	�open�readline�rstrip�replace�strip�
subprocess�Popen�PIPE�communicate)�query�f�password�procs    �&/usr/share/cagefs-plugins/mysql_lib.py�_executer#s���	
�$�c�	*�	*�)�a��:�:�<�<�&�&�(�(��)�)�)�)�)�)�)�)�)�)�)����)�)�)�)��M�M�$��$�$�*�*�,�,�E���P�u�P�P�P�����
��

��	
�
�
�
�D������a� � s�'A�A�Ac�R�td��}|dkrtd��dSdS)Nz3select * from psa.Modules where name='plesk-cagefs'�a>
            insert into psa.Modules(name, packname, display_name, description, icon)
            values(
                'plesk-cagefs',
                'plesk-cagefs',
                'CageFS',
                'GageFS',
                '/images/modules/plesk-cagefs/addon_CloudLinux_logo2.png'
            )
        �r#)�results r"�install_cagefs_module_pleskr(*sA��
�K�
L�
L�F�
��|�|��	�		
�		
�		
�		
�		
��|�c�$�td��dS)Nz1delete from psa.Modules where name='plesk-cagefs'r&�r)r"�delete_cagefs_module_pleskr,9s���
@�A�A�A�A�Ar))
�
__future__rrrrr�futurer�install_aliases�builtinsr#r(r,r+r)r"�<module>r1s���'�&�&�&�&�&�������%�%�%�%�%�%�'�'�'�'�'�'�����#�#�#�#�#�#� �� �"�"�"�����!�!�!�*
�
�
�B�B�B�B�Br)