Z d dl Z d dlmZ ee ZdZdZeegZ G d d ZdS ) N) getLoggermu_plugin_installationadvice_email_notificationc e Zd Zd ZdS )WordPressMuPluginc T t |dk |g s8t dt | t | dS |s*t dt | dS t j d st d dS )z
Must use plugin works only if cl-hosting-smart-advice is installed
So it is a requirement to be sure it is installed
It is expected to be installed by default with Imunify360
activeznNothing to prepare for Must Use plugin as settings are not turned on, activation status=%s mu_plugin_status=%sNz=Nothing to prepare for Must Use plugin as mu_plugin_status=%sz!/usr/sbin/cl-hosting-smart-advicezccl-hosting-smart-advice rpm package is not installed in the system, please install it and try again)allloggerwarningstrospathexists
ValueError)selfactivation_statusmu_plugin_statuss ^/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/utils/wordpress_mu_plugin.py"prepare_for_mu_plugin_installationz4WordPressMuPlugin.prepare_for_mu_plugin_installation s %13CDEE NNN%&&$%%
F NN)$%%
Fw~~ABB A
N)__name__
__module____qualname__r r r r r
s# r r ) r loggingr r r MU_PLUGIN_INSTALLATIONADVICE_EMAIL_NOTIFICATIONMU_PLUGIN_KEYSr r r r