PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
im360
/
migrations
import logging import subprocess from defence360agent.subsys.panels.cpanel import cPanel logger = logging.getLogger(__name__) # iContact events priority (this enables Icontact events triggering) def migrate(migrator, database, fake=False, **kwargs): if fake: return if not cPanel.is_installed(): return try: subprocess.run( [ "whmapi1", "set_application_contact_event_importance", "app=Imunify", "event=IELimit", "importance=High", ] ) except Exception as e: logger.warning("Failed to set imporance for IELimit: %s", str(e)) def rollback(migrator, database, fake=False, **kwargs): pass
[-] 003_move_remote_ipsetlist_tables_into_separate_db.py
[edit]
[-] 002_move_resident_tables_into_separate_db.py
[edit]
[-] 000_noop_migration.py
[edit]
[+]
__pycache__
[-] 001_whmapi1_set_importance_im360.py
[edit]
[-] 007_add_mask_to_ip_ingnored_port.py
[edit]
[-] 008_index_for_iplistrecord_iplist_id.py
[edit]
[-] 005_ip_network_v6_fix.py
[edit]
[-] 004_ips_as_packed_network.py
[edit]
[-] __init__.py
[edit]
[-] 006_remove_waf_configurator_cron.py
[edit]
[+]
..