PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
imav
/
migrations
/
__pycache__
/
Editing: 020_add_default_plesk_settings_av.cpython-311.pyc
� e��i� � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ed� � Z ed� � Z ej e� � Z dd �Zdd �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> Add Plesk default config file for AV if not exists.� N)�Path)�Plesk)�ANTIVIRUS_MODEz@/opt/imunify360/venv/share/imunify360/10_plesk_default_av.configzH/etc/sysconfig/imunify360/imunify360.config.d/10_plesk_default_av.configFc �j � |rd S t st � d� � d S t j � � du rt � d� � d S t � � � r"t � dt � � d S t j t t � � d S )Nz5This migration is only relevant for AV installations.Fz8This migration is only relevant for Plesk installations.z,Plesk default AV config already exists at %s) r �logger�infor �is_installed�TARGET�exists�shutil�copy2�SOURCE��migrator�database�fake�kwargss �f/opt/imunify360/venv/lib/python3.11/site-packages/imav/migrations/020_add_default_plesk_settings_av.py�migrater ( s� � �� ���� ����K�L�L�L�������u�$�$����N�O�O�O��� �}�}��� ����B�F�K�K�K��� �L��� � � � � � c � � d S )N� r s r �rollbackr : s � ��Dr )F)�__doc__r �logging�pathlibr �#defence360agent.subsys.panels.pleskr � defence360agent.contracts.configr r r � getLogger�__name__r r r r r r �<module>r! s� ��7� 7�. � � � � ���� � � � � � � 5� 5� 5� 5� 5� 5� ;� ;� ;� ;� ;� ;� ��F� � �� ��N� � �� �� �8� $� $��!� !� !� !�$ � � � � � r
SAVE
CANCEL