Your IP : 216.73.216.57
�
���hW � � � d Z ddlZddlZddlmZmZ ddlmZ ddlm Z m
Z
mZ ej e
� � Zdefd�Zdefd�Zdefd �Zdefd
�Zdefd�Zdefd�ZdS )
u
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
� N)� check_run�
CheckRunError)�WPSite)�PLUGIN_PATH�PLUGIN_SLUG�utils�sitec � �z K � t j | j � � j }t j | |� � � d{V ��}g t j || j � � �d�d�t t � � �d�d�}t j
||� � }t � d|� �� � t |� � � d{V �� dS )zFInstall the Imunify Security WordPress plugin on given WordPress site.N�plugin�install�
--activate�--forcezInstalling wp plugin ��pwd�getpwuid�uid�pw_namer �get_php_binary_path�
wp_wrapper�docroot�strr �build_command_for_user�logger�infor �r �username�php_path�args�commands �G/opt/imunify360/venv/lib/python3.11/site-packages/imav/wordpress/cli.py�plugin_installr! '