mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 13:28:05 +00:00
cmdeploy: cmdeploy run option to skip DNS checks
This commit is contained in:
@@ -20,6 +20,9 @@
|
|||||||
- Allow ports 143 and 993 to be used by `dovecot` process
|
- Allow ports 143 and 993 to be used by `dovecot` process
|
||||||
([#639](https://github.com/chatmail/relay/pull/639))
|
([#639](https://github.com/chatmail/relay/pull/639))
|
||||||
|
|
||||||
|
- Add `--skip-dns-check` argument to `cmdeploy run` command, which disables DNS record checking before installation.
|
||||||
|
([#661](https://github.com/chatmail/relay/pull/661))
|
||||||
|
|
||||||
## 1.7.0 2025-09-11
|
## 1.7.0 2025-09-11
|
||||||
|
|
||||||
- Make www upload path configurable
|
- Make www upload path configurable
|
||||||
|
|||||||
@@ -63,6 +63,12 @@ def run_cmd_options(parser):
|
|||||||
dest="ssh_host",
|
dest="ssh_host",
|
||||||
help="specify an SSH host to deploy to; uses mail_domain from chatmail.ini by default",
|
help="specify an SSH host to deploy to; uses mail_domain from chatmail.ini by default",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--skip-dns-check",
|
||||||
|
dest="dns_check_disabled",
|
||||||
|
action="store_true",
|
||||||
|
help="disable checks nslookup for dns",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def run_cmd(args, out):
|
def run_cmd(args, out):
|
||||||
@@ -70,9 +76,10 @@ def run_cmd(args, out):
|
|||||||
|
|
||||||
sshexec = args.get_sshexec()
|
sshexec = args.get_sshexec()
|
||||||
require_iroh = args.config.enable_iroh_relay
|
require_iroh = args.config.enable_iroh_relay
|
||||||
remote_data = dns.get_initial_remote_data(sshexec, args.config.mail_domain)
|
if not args.dns_check_disabled:
|
||||||
if not dns.check_initial_remote_data(remote_data, print=out.red):
|
remote_data = dns.get_initial_remote_data(sshexec, args.config.mail_domain)
|
||||||
return 1
|
if not dns.check_initial_remote_data(remote_data, print=out.red):
|
||||||
|
return 1
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env["CHATMAIL_INI"] = args.inipath
|
env["CHATMAIL_INI"] = args.inipath
|
||||||
|
|||||||
Reference in New Issue
Block a user