diff --git a/pleskdistup/actions/systemd.py b/pleskdistup/actions/systemd.py index 4f07f2f..5c12332 100644 --- a/pleskdistup/actions/systemd.py +++ b/pleskdistup/actions/systemd.py @@ -113,7 +113,7 @@ def __init__(self): # so we should choose the right smtp service, otherwise they will conflict if systemd.is_service_exists("qmail.service"): self.plesk_systemd_services.append("qmail.service") - else: + elif systemd.is_service_exists("postfix.service"): self.plesk_systemd_services.append("postfix.service") def _prepare_action(self) -> action.ActionResult: