Skip to content

Commit e2f4c8e

Browse files
committed
feat(madmail): add mandatory install flags for IP-based deployment
1 parent e3afc2a commit e2f4c8e

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/cmlxc/driver_madmail.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,15 @@ def deploy(self, source=None):
8080
)
8181
self.ct.bash("chmod +x /tmp/madmail")
8282

83-
self.out.print(f"Running madmail install --simple --ip {ip} ...")
83+
install_flags = (
84+
f"--simple --ip {ip}"
85+
" --tls-mode self_signed"
86+
" --enable-chatmail"
87+
" --non-interactive"
88+
)
89+
self.out.print(f"Running madmail install {install_flags} ...")
8490
self.ct.bash("systemctl stop madmail || true")
85-
self.ct.bash(f"/tmp/madmail install --simple --ip {ip}")
91+
self.ct.bash(f"/tmp/madmail install {install_flags}")
8692

8793
self.out.print("Starting madmail service ...")
8894
self.ct.bash("systemctl daemon-reload")
@@ -97,7 +103,6 @@ def deploy(self, source=None):
97103
self.out.section_line(f"deploy madmail complete ({elapsed:.1f}s)")
98104

99105

100-
101106
def prepare_build_container(bld_ct, go_mod_path):
102107
"""Install or update Go inside the builder according to go.mod."""
103108
bld_ct.bash("""

0 commit comments

Comments
 (0)