Edit File: 157_move_i360_modsec_disable_conf.cpython-311.pyc
� �*vh� � �j � d dl Z d dlZd dlZd dlmZ e j e� � ZdZdZ dZ dZd d�Zd d �Z dS )� N)� OsReleaseInfoz7/etc/apache2/conf/plesk.conf.d/i360_modsec_disable.confz>/etc/apache2/conf/plesk.conf.d/vhosts/i360_modsec_disable.confz5/etc/httpd/conf/plesk.conf.d/i360_modsec_disable.confz</etc/httpd/conf/plesk.conf.d/vhosts/i360_modsec_disable.confFc �N � |rd S t j � � t j z rt }t }nt }t }t j � |� � rD t j ||� � d S # t $ r t � d|� � Y d S w xY wd S )NzFailed move %s)r �id_like�DEBIAN�#_DEBIAN_OLD_MODSEC_DISABLE_FILENAME�#_DEBIAN_NEW_MODSEC_DISABLE_FILENAME�_OLD_MODSEC_DISABLE_FILENAME�_NEW_MODSEC_DISABLE_FILENAME�os�path�exists�shutil�move� Exception�logger� exception)�migrator�database�fake�kwargs� old_file_name� new_file_names �q/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/157_move_i360_modsec_disable_conf.py�migrater s� � �� ��������!5�5� 5�;� �;� � �4� �4� � �w�~�~�m�$�$� >� >��K� �}�5�5�5�5�5��� >� >� >����-�}�=�=�=�=�=�=� >����>� >s �"A9 �9%B"�!B"c � � d S )N� )r r r r s r �rollbackr ) s � ��D� )F)�loggingr r �defence360agent.utilsr � getLogger�__name__r r r r r r r r r r �<module>r# s� �� ���� � � � � � � � � /� /� /� /� /� /� �� �8� $� $�� >� $� E� $� <� � C� � >� >� >� >�" � � � � � r
Back to File Manager