@@ -88,7 +88,7 @@ def run_cmd_options(parser):
8888def run_cmd (args , out ):
8989 """Deploy chatmail services on the remote server."""
9090
91- ssh_host = args .ssh_host if args .ssh_host else args .config .mail_domain
91+ ssh_host = args .ssh_host if args .ssh_host else args .config .ssh_host
9292 sshexec = get_sshexec (ssh_host )
9393 require_iroh = args .config .enable_iroh_relay
9494 if not args .dns_check_disabled :
@@ -108,7 +108,7 @@ def run_cmd(args, out):
108108 pyinf = "pyinfra --dry" if args .dry_run else "pyinfra"
109109
110110 cmd = f"{ pyinf } --ssh-user root { ssh_host } { deploy_path } -y"
111- if ssh_host in ["localhost" , "@docker" ]:
111+ if ssh_host in ["localhost" , "@local" , "@ docker" ]:
112112 cmd = f"{ pyinf } @local { deploy_path } -y"
113113
114114 if version .parse (pyinfra .__version__ ) < version .parse ("3" ):
@@ -149,7 +149,7 @@ def dns_cmd_options(parser):
149149
150150def dns_cmd (args , out ):
151151 """Check DNS entries and optionally generate dns zone file."""
152- ssh_host = args .ssh_host if args .ssh_host else args .config .mail_domain
152+ ssh_host = args .ssh_host if args .ssh_host else args .config .ssh_host
153153 sshexec = get_sshexec (ssh_host , verbose = args .verbose )
154154 remote_data = dns .get_initial_remote_data (sshexec , args .config .mail_domain )
155155 if not remote_data :
@@ -183,7 +183,7 @@ def status_cmd_options(parser):
183183def status_cmd (args , out ):
184184 """Display status for online chatmail instance."""
185185
186- ssh_host = args .ssh_host if args .ssh_host else args .config .mail_domain
186+ ssh_host = args .ssh_host if args .ssh_host else args .config .ssh_host
187187 sshexec = get_sshexec (ssh_host , verbose = args .verbose )
188188
189189 out .green (f"chatmail domain: { args .config .mail_domain } " )
0 commit comments