Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
imunify360
/
venv
/
lib64
/
python3.11
/
site-packages
/
defence360agent
/
migrations
/
__pycache__
[ HOME ]
Exec
Submit
File Name : 123_disable_scheduled_scan.cpython-311.pyc
� ���h� � �t � d dl Z d dlZd dlZd dlmZmZ ej e� � ZdZ d d�Z e fd�Zd d�Zd d�Z dS )� N)� ConfigFile�NONEz!/etc/cron.d/imunify_scan_schedulec � � 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! s � � �D� c � � d S r r r s r �rollbackr$ * s � ��Dr"