systemctl daemon-reload should be inside the module

This commit is contained in:
n8fr8 2026-05-07 13:34:50 -04:00
parent 8fdfd1b8ea
commit e85c3b1dc2

View file

@ -71,7 +71,6 @@ def run_madmail_installer():
child.sendline("y")
child.expect(pexpect.EOF)
daemon_reload = run(["sudo", "systemctl", "daemon-reload"], capture_output=True, text=True)
if daemon_reload.returncode != 0:
print(f"Issue running systemctl daemon_reload")
daemon_reload = run(["sudo", "systemctl", "daemon-reload"], capture_output=True, text=True)
if daemon_reload.returncode != 0:
print(f"Issue running systemctl daemon_reload")