Y¶j_ d dl Z d dlmZmZ d dlmZ d dlmZ d dlm Z d dl
mZ dZdZ
ed d
Z ed ded
efd ZdS ) N)runtask)configure_accelerate_wp)Feature)is_panel_feature_supported) is_ubuntuallowed_for_all
accelerate_wpzEnabling Accelerate WPc ^ t rt j d dS t t j st j d dS t
n$# t $ r t j d Y nw xY wt j d t g d dS )z%
Set AccelerateWP free suite
zFAccelerateWP setup upon new server is skipped: Ubuntu is not supportedNzMAccelerateWP setup upon new server is skipped: Control Panel is not supportedz7AccelerateWP configuration upon new server setup failedzETurning off notifications and automatic WordPress plugin installation)/usr/bin/cloudlinux-awp-adminzset-optionsz--smart-advice-notificationsoffz--smart-advice-wordpress-pluginr
z--smart-advice-remindersr
)r loggingwarningr r WPOSr Exception exceptioninfor py/clconfigure/awp.pyenable_accelerate_wp_freer s
{{ `aaa%gl33 ghhhU!!!! U U USTTTTTU LXYYY , , , - - - - -s A$ $BBz7Changing Accelerate WP suite {suite} status to {status}suitestatusc h |t k rt ddd| dg dS t d| )z2
Set AccelerateWP suite to desired state.
r z set-suitez--suitesz--allowed-for-allz!Currently not implemented status N)STATUS_ALLOWED_FOR_ALLr NotImplementedError)r r s r set_suite_statusr , sH
'''
,k:uNabccccc!"Nf"N"NOOOr )r clconfigurer r clcommon.clwpos_libr clcommon.constr clcommon.cpapir clcommon.utilsr r SUITE_AWP_FREEr strr r r r