Server IP : 66.29.132.122 / Your IP : 18.191.26.4 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/ |
Upload File : |
from defence360agent.contracts.config import ( IConfig, LocalConfig, NonBaseMerger, ) def migrate(*_, config_file: IConfig = LocalConfig(), fake=False, **__): if fake: return config = NonBaseMerger( names=(NonBaseMerger.get_layer_names()) ).configs_to_dict(force_read=True) permission_settings = config.setdefault("PERMISSIONS", {}) user_override_malware_actions = permission_settings.get( "user_override_proactive_defense" ) if user_override_malware_actions is None: permission_settings["user_override_proactive_defense"] = True config_file.dict_to_config( {"PERMISSIONS": permission_settings}, validate=False, without_defaults=True, ) def rollback(*_, **__): pass