File: //etc/leapp/repos.d/system_upgrade/el7toel8/actors/spamassassinconfigupdate/actor.pyc
�
��ic @ s` d d l m Z d d l m Z d d l m Z d d l m Z m Z d e f d � � YZ d S( i����( t Actor( t spamassassinconfigupdate( t SpamassassinFacts( t ApplicationsPhaseTagt IPUWorkflowTagt SpamassassinConfigUpdatec B s8 e Z d Z d Z e f Z d Z e e f Z d � Z
RS( sK
This actor performs several modifications to spamassassin configuration
so that spamc and the spamassassin systemd service can be run without error
on the target system:
1. Remove arguments given to the --ssl option in spamc configuration
(/etc/mail/spamassassin/spamc.conf).
2. Remove --ssl-version options from the spamassassin sysconfig file
(/etc/sysconfig/spamassassin), or replace them with --ssl, if needed.
3. Remove the -d/--daemonize option from the spamassassin sysconfig file.
All files are backed up before they are modified.
t spamassassin_config_updatec C sB t | j t � d � } | r. t j | � n | j j d � d S( NsD Skipping execution - no SpamassassinFacts message has been produced.( t nextt consumeR t NoneR t migrate_configst logt debug( t selft facts( ( si /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/spamassassinconfigupdate/actor.pyt process s ( ( t __name__t
__module__t __doc__t nameR t consumest producesR R t tagsR ( ( ( si /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/spamassassinconfigupdate/actor.pyR s N(
t leapp.actorsR t leapp.libraries.actorR t leapp.modelsR t
leapp.tagsR R R ( ( ( si /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/spamassassinconfigupdate/actor.pyt <module> s