@@ -270,6 +270,14 @@ def install(self):
270270 path = "/var/log/journal/" ,
271271 present = False ,
272272 )
273+ # remove echobot if it is still running
274+ if host .get_fact (SystemdEnabled ).get ("echobot.service" ):
275+ systemd .service (
276+ name = "Disable echobot.service" ,
277+ service = "echobot.service" ,
278+ running = False ,
279+ enabled = False ,
280+ )
273281
274282
275283def check_config (config ):
@@ -404,30 +412,6 @@ def activate(self):
404412 self .need_restart = False
405413
406414
407- class EchobotDeployer (Deployer ):
408- #
409- # This deployer depends on the dovecot and postfix deployers because
410- # it needs to base its decision of whether to restart the service on
411- # whether those two services were restarted.
412- #
413- def __init__ (self , mail_domain ):
414- self .mail_domain = mail_domain
415- self .units = ["echobot" ]
416-
417- def install (self ):
418- apt .packages (
419- # required for setfacl for echobot
420- name = "Install acl" ,
421- packages = "acl" ,
422- )
423-
424- def configure (self ):
425- configure_remote_units (self .mail_domain , self .units )
426-
427- def activate (self ):
428- activate_remote_units (self .units )
429-
430-
431415class ChatmailVenvDeployer (Deployer ):
432416 def __init__ (self , config ):
433417 self .config = config
@@ -590,7 +574,6 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None:
590574 PostfixDeployer (config , disable_mail ),
591575 FcgiwrapDeployer (),
592576 NginxDeployer (config ),
593- EchobotDeployer (mail_domain ),
594577 MtailDeployer (config .mtail_address ),
595578 GithashDeployer (),
596579 ]
0 commit comments