관리-도구
편집 파일: 123_disable_scheduled_scan.cpython-311.pyc
� IMgh � �~ � d dl Z d dlZd dlZd dlmZmZmZ ej e� � Z dd�Z ej fd�Zd d�Z d d�ZdS ) � N)� ConfigFile�MalwareScanSchedule�NONEc � � ddt ii} t | �� � }|� |� � d S # t $ r t � d� � Y d S w xY w)N�MALWARE_SCAN_SCHEDULE�interval��pathz*Failed to set malware scan schedule config)r r �dict_to_config� Exception�logger� exception)r �config�config_files �j/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/123_disable_scheduled_scan.py�_update_configr s� � ����" ��F�G� �d�+�+�+���"�"�6�*�*�*�*�*��� G� G� G����E�F�F�F�F�F�F�G���s �%4 �$A�Ac � � t j t � � 5 t j | � � d d d � � d S # 1 swxY w Y d S �N)� contextlib�suppress�FileNotFoundError�os�unlinkr s r �_remove_cronr s� � � � �.� /� /� � � � �$����� � � � � � � � � � � ���� � � � � � s �<�A �A Fc � � d S r � ��migrator�database�fake�kwargss r �migrater"